Month tokens are used to display some aspect of the month corresponding to a token's date (as specified by their DayValue).
Name |
Token |
Values * |
Description |
---|---|---|---|
[m] |
1 à 12 |
|
|
[mm] |
01 à 12 |
Always with 2 digits. |
|
[m#] |
28 à 31 |
||
[my+] |
1 à 12 |
Month of the year. This token gives the exact same result as the [m] token, above. |
|
[my-] |
11 à 0 |
Months remaining in the year. |
|
[M] |
J, F, M, ..., O, N, D |
First letter only |
|
[Mm] |
anuary, ebruary, arch, ..., ctober, ovember, ecember |
Rest of the name, lowercase. |
|
[MM] |
ANUARY, EBRUARY, ARCH, ..., CTOBER, OVEMBER, ECEMBER |
Rest of the name, uppercase. |
|
[mmm] |
jan à dec |
No change in case with respect to its value in the translation table. |
|
[Mmm] |
Jan à Dec |
First letter in uppercase. |
|
[MMM] |
JAN à DEC |
All in uppercase. |
|
[mmmm] |
january à december |
No change in case with respect to its value in the translation table. |
|
[Mmmm] |
January à December |
First letter in uppercase. |
|
[MMMM] |
JANUARY à DECEMBER |
All in uppercase. |
|
[.m] |
st, nd, rd, th, ... |
Short ordinal. |
|
[!m] |
First, Second, Third, Fourth, ... |
Full ordinal. |
|
Date Formatting |
[dmmm] |
Use this mixed-source token to build regional formatting of a date by combining day tokens and month tokens.
For example, you may define a token [:dmmm] which you would define as [dddd] [d] [mmmm] [yyyy]. These recursive tokens are very powerful, particularly if you are using the same GridTemplates for different languages
However, Q++Studio does not know the specific rules for which words should or should not be in uppercase, something which depends on the language used and even user preferences, since the regional date formatting tokens recursively contain other tokens resulting in multiple words.
Therefore the only allowed combinations are:
•Don't change case at all: [:dmmm] and [:dmmmm].
•Change all to uppercase: [:dMMM] and [:dMMMM].
Note that regardless of the case desired, the 'd' is always in lowercase. |
|
[dmmmm] |
Note that:
•The tokens in the table above refer to dates of the Gregorian calendar (ie. the standard Western calendar). There are also tokens that allow you to display dates based on the Chinese, Jewish, Korean, Muslim and Orthodox calendars.
•Values that are language dependent, are displayed below using the most commonly used English translation. The actual results that you will get will depend on the language selected, and the translation specified in the tokens and translations manager).
See also: German working days in month tokens and less frequently used month tokens in the next topics.
.
Topic 000103, last updated on 17-Apr-2020