You can use the reference below to create your own custom date format which can be used in the Event Genius plugin to display a date or time in any custom format.
Date
Day
- d: Day of the month with leading zeroes. Values are 01 through 31.
- j: Day of the month without leading zeroes. Values 1 through 31
- D: Day of the week abbreviations. Sun through Sat
- l: Day of the week. Values Sunday through Saturday
- w: Day of the week without leading zeroes. Values 0 through 6.
- z: Day of the year without leading zeroes. Values 0 through 365.
Month
- m: Month number with leading zeroes. Values 01 through 12
- n: Month number without leading zeroes. Values 1 through 12
- M: Abbreviation for the month. Values Jan through Dec
- F: Normal month representation. Values January through December.
- t: The number of days in the month. Values 28 through 31.
Year
- L: 1 if it’s a leap year and 0 if it isn’t.
- Y: A four digit year format
- y: A two digit year format. Values 00 through 99.
Date Examples
F j, Y– November 6, 2025l, F jS, Y– Saturday, November 6th, 2025M j, Y– Nov 6, 2025Y/m/d– 2025/11/06m.d.y– 06.11.2025
Time
- a: am or pm depending on the time
- A: AM or PM depending on the time
- g: Hour without leading zeroes. Values are 1 through 12.
- G: Hour in 24-hour format without leading zeroes. Values are 0 through 23.
- h: Hour with leading zeroes. Values 01 through 12.
- H: Hour in 24-hour format with leading zeroes. Values 00 through 23.
- i: Minute with leading zeroes. Values 00 through 59.
- s: Seconds with leading zeroes. Values 00 through 59.
Time Examples
g:i a– 12:50 amg:i:s a– 12:50:48 amG:i– 0:50g:i A– 12:50 AMg:i:s A– 12:50:48 AM
Can't Find What You Need?
We're here to help with fast & friendly support