formatDate

function

Formats a date according to locale rules.

See more...

formatDate(value: string | number | Date, format: string, locale: string, timezone?: string): string

Parameters

value

Type: string | number | Date.

format

Type: string.

locale

Type: string.

timezone

Type: string.

Optional. Default is undefined.

Returns

string

Description

Where:

See DatePipe for more details.

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/common/formatDate