From 1f469cd7bb49eb1c1b446f979ebb293ed4481368 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Mon, 1 Apr 2019 16:27:07 +0200 Subject: [PATCH] docs: improve formatDate description (#29632) PR #29289 reworded the description, making it less obvious that the value to format can be a `Date`. PR Close #29632 --- packages/common/src/i18n/format_date.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/i18n/format_date.ts b/packages/common/src/i18n/format_date.ts index b25921e5dd..fe25660e44 100644 --- a/packages/common/src/i18n/format_date.ts +++ b/packages/common/src/i18n/format_date.ts @@ -46,7 +46,7 @@ enum TranslationType { * * Formats a date according to locale rules. * - * @param value The date to format, as a number (milliseconds since UTC epoch) + * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch) * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime). * @param format The date-time components to include. See `DatePipe` for details. * @param locale A locale code for the locale format rules to use.