Format a date into a string value with a specified format.
The format can be combinations of the following:
- d - day of month (no leading zero)
- dd - day of month (two digit)
- D - day name short
- DD - day name long
- m - month of year (no leading zero)
- mm - month of year (two digit)
- M - month name short
- MM - month name long
- y - year (two digit)
- yy - year (four digit)
- '...' - literal text
- '' - single quote
- anything else - literal text
Arguments:
| format | String | |
|---|---|---|
| The format to use in presenting the date. | ||
| date | Date | |
| The date value to be displayed. | ||
| settings (Optional) | Object | |
| Additional parameters for formatting the date. All are optional and default to the datapicker defaults, which are usually standard English. Since v3.4 - prior to this these settings were separate parameters. | ||