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:
parent
7041e61562
commit
1f469cd7bb
|
@ -46,7 +46,7 @@ enum TranslationType {
|
||||||
*
|
*
|
||||||
* Formats a date according to locale rules.
|
* 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).
|
* 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 format The date-time components to include. See `DatePipe` for details.
|
||||||
* @param locale A locale code for the locale format rules to use.
|
* @param locale A locale code for the locale format rules to use.
|
||||||
|
|
Loading…
Reference in New Issue