Help Angular by taking a 1 minute survey!Go to surveyHome

FormatWidth

String widths available for date-time formats. The specific character widths are locale-specific. Examples are given for en-US.

See also

      
      enum FormatWidth {
  Short
  Medium
  Long
  Full
}
    

Members

Member Description
Short

For en-US, 'M/d/yy, h:mm a'(Example:6/15/15, 9:03 AM`)

Medium

For en-US, 'MMM d, y, h:mm:ss a' (Example: Jun 15, 2015, 9:03:01 AM)

Long

For en-US, 'MMMM d, y, h:mm:ss a z' (Example: June 15, 2015 at 9:03:01 AM GMT+1)

Full

For en-US, 'EEEE, MMMM d, y, h:mm:ss a zzzz' (Example: Monday, June 15, 2015 at 9:03:01 AM GMT+01:00)