| Parameter | Description |
| datetime | Date/time to format. Although the framework's standard representation of date/times is milliseconds, you are allowed to pass a Javascript Date object into this function. |
| options | Options for formatting the date |
The possible options for
| Option | Description |
| format | String describing the format for the date. If omitted, or none of the items below, then the format is "dateonly": formats as "yyyymm": formats as "timeonly": formats as "timehhmm": formats as "datehhmm": formats as "textdate": language specific, but in English formats as |
| localtime | By default, |
| date_separator | Can be used to override the separator between the parts of the date. Defaults to / |
| time_separator | Can be used to override the separator between the parts of the time. Defaults to : |