Supported Date Formats
Here a few examples of supported date formats that you can use when you set up the date format and time on the Event Smart > Settings > General screen.
- F j, Y -- January 15, 2019
- j.F.Y -- 15.January.2019
- Y/m/d -- 2019/01/15
- m/d/Y -- 01/15/2019
- d-m-y -- 15-01-2019
- y-m-d -- 19-01-15
Each format character represents:
- F = Full textual name for the month.
- M = Abbreviated textual name for the month.
- m = The month with leading zeros.
- n = The month without leading zeros.
- d = The day of the month, with leading zeros.
- j = The day of the month without leading zeros.
- Y = The year in 4 digits. (lower-case y gives the year's last 2 digits)
A note from the official PHP documentation explains how the month and day are determined when converted from a string:
Dates in the m/d/y or d-m-y formats are disambiguated by looking at the separator between the various components: if the separator is a slash (/), then the American m/d/y is assumed; whereas if the separator is a dash (-) or a dot (.), then the European d-m-y format is assumed.
Examples of non-supported formats that PHP can't disambiguate follow:
- d/m/Y
- j, F Y