• Formats a Date using the specified FormatPattern. Note the similarity to the formatUsingPattern function. Both functions format the date based on the format pattern, it is simply a choice of whether to use the FormatName or FormatPattern. Which function is more appropriate to use depends on the use case.

    Returns

    The formatted string.

    Parameters

    • date: Date

      The date.

    • pattern: FormatPattern

      The format pattern.

    Returns string

Generated using TypeDoc