Hierarchy

  • DateTimeFormatter

Constructors

Properties

formatter: DateTimeFormat

Methods

  • Format a date according to locale standards

    Parameters

    • value: number | Date

      The date value to format. Can be a Date object or a number representing milliseconds since the epoc

    Returns string

    The formatted datetime

  • Format a date, separated into its individual parts

    Parameters

    • value: number | Date

      The date value to format. Can be a Date object or a number representing milliseconds since the epoc

    Returns DateTimeFormatPart[]

    An ordered array of objects representing the parts of the formatted date, each with a type and value

  • Return a number representing the start of calendar week based on given locale

    Returns number

    A number representation of the days of the week [0: Sunday -> 6: Saturday]

Generated using TypeDoc