Value on a Date
This is the documentation for 4.2.2 version, which is not the latest version. Consider upgrading to 4.3.1.
Using value
on a date is the proper way to format and output a date.
The date-fns
lib will be used to format it. You should put a parameter to indicate how to format it:
will output April 14, 1980 in English.
On locale: here the date is implicitely created using a local timezone, and then output again using implicitely the local timezone. |
See format with date-fns for plenty of options.
The date has to be a real standard JavaScript date, not a string. If you have a string parse it before, using new Date(string) .
|