Insert dates and times

Jump to navigation Jump to search

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}} 27 Displays the current day in numeric form.
{{CURRENTDAYNAME}} Saturday Displays the current day in named form.
{{CURRENTDOW}} 6 Displays the current day as a number of the week (0=Sunday, 1=Monday...).
{{CURRENTMONTH}} 07 Displays the current month in numeric form.
{{CURRENTMONTHABBREV}} Jul Displays the abbreviation of the current month.
{{CURRENTMONTHNAME}} July Displays the current month in named form.
{{CURRENTMONTHNAMEGEN}} July Displays the name of the current month in genitive form. Wikis that don't support this will default to {{CURRENTMONTHNAME}}.
{{CURRENTTIME}} 01:27 Displays the current time of day (hours:minutes).
{{CURRENTWEEK}} 30 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:27, Saturday July 27, 2024


Template:WikiDoc Sources