gYearMonth data type
The xs:gYearMonth data type represents a specific Gregorian month in a specific Gregorian year. Gregorian calendar months are defined in ISO 8601. Derived from data type xdt:anyAtomicType.
The lexical form of xs:gYearMonth is yyyy-mmzzzzzz. This form is a truncated representation of xs:dateTime that does not include the time of day properties. Negative dates are not allowed. The following abbreviations describe this form:
- yyyy
- A 4-digit numeral that represents the year. Valid values are from 0001 through 9999. A plus sign (+) is not allowed.
- mm
- A 2-digit numeral that represents the month.
- zzzzzz
- Optional. If present, represents the timezone. See Timezone indicator for more information about the format for this property.
For example, the following form, which does not
include an optional timezone indicator, indicates the month of October
in 2005:
2005-10