Date Display
The Date Display shortcode for WordPress can be used to display the current date or a relative date from the past or future adjusted by parameters. Check below for example implementations and shortcode documentation:
Date Display Examples
Date Display Shortcodes
[x3m-date format="DD.MM.YYYY"]Date Display Documentation
Here are the shortcode option settings available for Date Display:
| Shortcode Settings | Details |
|---|---|
| format=”DD.MM.YYYY” | this is used to set the format of the current date to be displayed. – DD – displays 2 digit format of day – MM – displays 2 digit format of month – YY – displays 2 digit format of year – YYYY – displays 4 digit format of year – ZZZ – displays name of day of the week – XXX – displays name of the month DD, MM, YYYY or YY, ZZZ or XXX can be combined in any way. Any separators can be used between these notations (ex “MM / YYYY”) |
| lang=”en”
optional |
used to set the language of the date displayed, impacting what is displayed as name of day and name of month.
Optional value, when not set it returns English language. For other languages use: fr (French), it (Italian), de (German), pt (Portuguese), es (Spanish), se (Swedish), dk (Danish), no (Norwegian), fi (Finnish), ee (Estonian), pl (Polish), hu (Hungarian), ro (Romanian), ru (Russian), jp (Japanese), kr (Korean). |
| adjust=”+1 day”
optional |
used to adjust the date displayed relative to the current date.
Adjustments can be in the past, such as “-1 day”, “-2 months” or “-1 year”, or in the future such as “+2 days”, “+1 month” or “+2 years” |