Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

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)