Date

The Date displays date and time in any format, optionally with icon.

Style Settings

Html Tag: Select the tag to display the date.

  • div - To display the date in new line.
  • span - To display the date in existing line.

Class: Add additional CSS classes to style the date.

Icon: Add the icon class. For example: fa-solid fa-calendar-alt

Format: Enter the format of date. For example: d, M Y

Relative: Enable it to display the relative date.

Date Formats

Day

  • d: Day of the month, 2 digits with leading zeros (01 to 31)
  • D: A textual representation of a day, three letters (Mon through Sun)
  • j: Day of the month without leading zeros (1 to 31)
  • l: (lowercase L): A full textual representation of the day of the week (Sunday through Saturday)
  • z: The day of the year starting from 0 (0 through 365)

Week

  • W: Week number of year, weeks starting on Monday (Example: 42)

Month

  • F: A full textual representation of a month (January through December)
  • m: Numeric representation of a month, with leading zeros (01 through 12)
  • M: A short textual representation of a month, three letters (Jan through Dec)
  • n: Numeric representation of a month, without leading zeros (1 through 12)
  • t: Number of days in the given month (28 through 31)

Year

  • Y: A full numeric representation of a year, at least 4 digits, with - for years BCE.
  • y: A two digit representation of a year.
  • L: Whether it's a leap year (1 if it is a leap year, 0 otherwise).

Time Formats

  • a: Lowercase Ante meridiem and Post meridiem (am or pm)
  • A: Uppercase Ante meridiem and Post meridiem (AM or PM)

Hours

  • g: 12-hour format of an hour without leading zeros (1 through 12)
  • G: 24-hour format of an hour without leading zeros (0 through 23)
  • h: 12-hour format of an hour with leading zeros (01 through 12)
  • H: 24-hour format of an hour with leading zeros (00 through 23)

Minute

  • i: Minutes with leading zeros (00 to 59)

Seconds

  • s: Seconds with leading zeros (00 through 59)

Full Date/Time

  • c: ISO 8601 (2004-02-12T15:19:21+00:00)
  • r: RFC 2822 or RFC 5322 (Thu, 21 Dec 2000 16:01:07 +0200)
  • U: Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)