1,635
edits
m (→Year formats) |
m (→Month formats) |
||
Line 206: | Line 206: | ||
====Month formats==== | ====Month formats==== | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
!style="width:150px" | | !style="width:150px" | Mono/.NET Specifier for Cumulus MX | ||
!style="width:600px" | Displays | !style="width:600px" | Displays | ||
!style="width:600px" | Example | !style="width:600px" | Example | ||
|- | |- | ||
|%M | |%M | ||
|Displays the month as a number without a leading zero (1-12). | |Displays the month as a number without a leading zero (1-12). | ||
Note that including a '%' before the M makes it a custom modifier giving a different output to the '''format=M''' (which produces e.g. '3 october'). | |||
| | |10 produced by <#date format=%M> | ||
|- | |- | ||
|MM | |MM | ||
|Displays the month as a number with a leading zero (01-12). | |Displays the month as a number with a leading zero (01-12). | ||
|'03' produced by <#LastDataReadT format=MM> or <#metdate format="MM"> | |'03' produced by <#LastDataReadT format=MM> or <#metdate format="MM"> | ||
|- | |- | ||
|MMM | |MMM | ||
|Displays the month using the strings defined for '''short month name''' in the Locale. | |Displays the month using the strings defined for '''short month name''' in the Locale. | ||
|'Jun. | |||
Note that some locales produce a dot after the three letter abbreviation! | |||
|'Jun.' produced by <#metdate format="MMM"> depending on the locale | |||
|- | |- | ||
|MMMM | |MMMM | ||
|Displays the month as a full name using the strings appropriate to the Locale. | |Displays the month as a full name using the strings appropriate to the Locale. | ||
|'June' produced by <#metdate format="MMMM"> (English locale) | |'June' produced by <#metdate format="MMMM"> (English locale) | ||
|} | |} | ||
[VERIFY!!] | |||
'''CAUTION:''' Cumulus MX has yet another complication, a web tag can return different months depending on whether the output modifier for month is used with, or without, an output modifier for day. Take two examples <code><#metdateyesterday format=yyyy-MM-dd></code> and <code><#metdateyesterday format=yyyy-MM></code>, these can produce different months when processed by MX on same day at near enough same time! Let us assume the first is reporting (in a particular year) the first day of June, the second would report the month of May in same year! | |||
====Day formats==== | ====Day formats==== |