function
Formats a date according to locale rules.
formatDate(value: string | number | Date, format: string, locale: string, timezone?: string): string
value | string | number | Date | The date to format, as a Date, or a number (milliseconds since UTC epoch) or an ISO date-time string. |
format | string | The date-time components to include. See |
locale | string | A locale code for the locale format rules to use. |
timezone | string | The time zone. A time zone offset from GMT (such as Optional. Default is |
string
: The formatted date string.
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/common/formatDate