Overview
This macro allows to display the current time and/or date in a user-defined format.
To display the current date in the standard format (f.e. 2008/3/17 16:17), you can use the following snippet:
If you need a custom format, you can define it inside the macro body:
will display the current year:
You can even add your own text inside the date-macro-body (just remember - whenever you want to display a date-variable, prefix it with a percent-character and the macro will take care of the rest).
will display:
Unknown macro: {date} Today is the %Dth
Here's a short listing of all available variables that can be used inside the macro body:
- %Y – Year (f.e. 2008)
- %D – Day (f.e. 31)
- %M – Month (f.e. 12)
- %m – Minutes (f.e. 59)
- %h – Hours (f.e. 23)
- %L – a complete date string (depending on the localization settings of your browser, f.e. March 17, 2008)