Insert dates and times

Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Editor-In-Chief: C. Michael Gibson, M.S., M.D. [1]

Overview

The table below shows you the syntax to insert a wide range of data and times into a WikiDoc page.

Time

Word Example Explanation
{{CURRENTDAY}} 29 Displays the current day in numeric form.
{{CURRENTDAYNAME}} Friday Displays the current day in named form.
{{CURRENTDOW}} 5 Displays the current day as a number of the week (0=Sunday, 1=Monday...).
{{CURRENTMONTH}} 03 Displays the current month in numeric form.
{{CURRENTMONTHABBREV}} Mar Displays the abbreviation of the current month.
{{CURRENTMONTHNAME}} March Displays the current month in named form.
{{CURRENTMONTHNAMEGEN}} March Displays the name of the current month in genitive form. Wikis that don't support this will default to {{CURRENTMONTHNAME}}.
{{CURRENTTIME}} 01:26 Displays the current time of day (hours:minutes).
{{CURRENTWEEK}} 13 Displays the number of the current week (1-52).
{{CURRENTYEAR}} 2024 Returns the current year.


An Example

Typing this:

'''It is currently {{CURRENTTIME}}, {{CURRENTDAYNAME}} {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}'''

Displays this:

It is currently 01:26, Friday March 29, 2024


Template:WikiDoc Sources