The AnnualDate
type supports the following patterns:
The following standard patterns are supported:
G
: General invariant ISO-like pattern. This corresponds to the custom pattern 'MM'-'dd
. This is the default format pattern.The following custom format pattern characters are supported for annual dates. See custom pattern notes for general notes on custom patterns, including characters used for escaping and text literals.
Character | Meaning | Example |
M or MM |
Month of year specified as a number. MM is zero-padded; M is not.
|
June: M => 6 June: MM => 06 December: M => 12 December: MM => 12 |
MMM |
Abbreviated month name, parsed case-insensitively. This is culture-sensitive. |
(In an English locale.) June: MMM => Jun (can parse from "jun" or "JUN" etc.)December: MMM => Dec (can parse from "dec" or "DEC" etc.) |
MMMM |
Full month name, parsed case-insensitively. This is culture-sensitive. |
(In an English locale.) June: MMMM => June (can parse from "june" or "JUNE" etc.)December: MMMM => December (can parse from "december" or "DECEMBER" etc.) |
d or dd |
Day of month - dd is zero-padded; d is not.
|
1st of the month: d => 1 (would parse "01" as well)1st of the month: dd => 01 21st of the month: d => 21 21st of the month: dd => 21 |