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, 2025
  • l, F jS, Y – Saturday, November 6th, 2025
  • M j, Y – Nov 6, 2025
  • Y/m/d – 2025/11/06
  • m.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 am
  • g:i:s a – 12:50:48 am
  • G:i – 0:50
  • g:i A – 12:50 AM
  • g:i:s A – 12:50:48 AM

Can't Find What You Need?

We're here to help with fast & friendly support

Contact Support