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
This commit is contained in:
cexbrayat 2019-04-01 16:27:07 +02:00 committed by Jason Aden
parent 7041e61562
commit 1f469cd7bb
1 changed files with 1 additions and 1 deletions

View File

@ -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.