Next: , Previous: Month name, Up: Replacements with date argument


G.2.1.7 Month number %[format]M[date] special text

%M[date]
Is replaced by the month number of the current month of year, e.g.:
The text ‘Month %M , %n will be expanded to
==> ‘Month 2, 22-Feb-1996, in case the actual system date is the 22nd February 1996.

%>02*M[date]
Is replaced by the 2-digit month number with leading zero of the current month of year, e.g.:
The text ‘Month %>02*M000001 , %n will be expanded to
==> ‘Month 01, 22-Feb-1996, in case the actual system date is the 22nd February 1996.

%>1&*M[date]
Is replaced by the month number with trailing Ordinal Number suffix of the current month of year, e.g.:
The text ‘Month %>1&*M , %n will be expanded to
==> ‘Month 2nd, 22-Feb-1996, in case the actual system date is the 22nd February 1996.

%>02&*M[date]
Is replaced by the 2-digit month number with leading zero and trailing Ordinal Number suffix of the current month of year, e.g.:
The text ‘Month %>02&*M , %n will be expanded to
==> ‘Month 02nd, 22-Feb-1996, in case the actual system date is the 22nd February 1996.