The primitive type xs:gMonthDay
represents a recurring day of the year. It can be used to specify, for example, that your anniversary is on the 30th of July every year.
The lexical representation of xs:gMonthDay
is --MM-DD
. An optional time zone can be used, as described in "Time Zones" in Chapter 19. Table B-13 lists some values of this type.
Values of xs:gMonthDay
can be tested for equality (or inequality) with other values of the same type, but they cannot be compared using the operators <
, <=
, >
, or >=
.
Values of this type can be cast from the xs:date
and xs:dateTime
types. For example, the expression xs:date("2006-05-30") cast as xs:gMonthDay
returns an xs:gMonthDay
value of --05-30
. They can also be cast to and from xs:string
and xs:untypedAtomic
.
3.147.47.166