Function strftime

  • Formats a date using a formatting string in the strftime format, in any given locale.

    Returns

    The string representation of date

    See

    strftime format

    Example

    strftime('%A, %d/%m/%y', new Date())
    // 'Saturday, 01/02/2020'

    Parameters

    • fmt: string

      The format string to apply

    • date: Date

      The date value

    • Optional locale: string

      The locale to use when formatting (default is system locale).

    Returns string

Generated using TypeDoc