Returns the current date in the format specified.
Number | Type | Compulsory | Default | Description |
---|---|---|---|---|
1 |
string |
No |
'locale' |
format |
May be 'iso' or 'locale'. When set to 'locale' the date is returned in a format specified by system settings. When set to 'iso' the date is returned in a format complying with ISO8601 which is YYYY-MM-DD where YYYY is the year, MM is the month of the year (between 01 and 12), and DD is the day of the month between 01 and 31.
Return type: string
|