Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

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)