Difference between revisions of "Command/date"

From Wiki
Jump to navigation Jump to search
(Create reference page)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->

Revision as of 15:48, 11 April 2010



d number
m number
y number


Display a date. First optional argument specifies the date using the day (d), month (m) and year (y). If omitted the current date is assumed.

The second optional argument specifies the output format. Available fields are:

day, month, year, weekday, dd, mm, yy, jj, d, m, y, j, referral.

You can also insert delimiters between the fields (e.g. commas, spaces, see examples).



To get a short month use


(lowercase, 25 apr 2008) or


(uppercase, 25 APR 2008) as follows:


It is possible to redefine the


form to have a starting capital (e.g. 25 Apr 2008). Put the following in your environment file:

\setuplabeltext [\s!en] [\v!january  :\s!mnem=Jan]
\setuplabeltext [\s!en] [\v!february :\s!mnem=Feb]
\setuplabeltext [\s!en] [\v!march    :\s!mnem=Mar]
\setuplabeltext [\s!en] [\v!april    :\s!mnem=Apr]
\setuplabeltext [\s!en] [\v!may      :\s!mnem=May]
\setuplabeltext [\s!en] [\v!june     :\s!mnem=Jun]
\setuplabeltext [\s!en] [\v!july     :\s!mnem=Jul]
\setuplabeltext [\s!en] [\v!august   :\s!mnem=Aug]
\setuplabeltext [\s!en] [\v!september:\s!mnem=Sep]
\setuplabeltext [\s!en] [\v!october  :\s!mnem=Oct]
\setuplabeltext [\s!en] [\v!november :\s!mnem=Nov]
\setuplabeltext [\s!en] [\v!december :\s!mnem=Dec]


See also