Value on a Date

This is the documentation for 1.16.9 version, which is not the latest version. Consider upgrading to 3.4.0.

Using value on a date is the proper way to format and output a date.

The (awesome) moment 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.

See displaying dates with moment.js 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) or util.moment.