# fn:month-from-dateTime - XPath XQuery Reference

Returns the month component of an xs:dateTime.deterministiccontext-independentfocus-independentIf $arg is the empty sequence, the function returns the empty sequence.Otherwise, the function returns an xs:integer between 1 and 12, both
            inclusive, representing the month component in the local value of $arg.fn:month-from-dateTime(xs:dateTime("1999-05-31T13:20:00-05:00"))5fn:month-from-dateTime(xs:dateTime("1999-12-31T19:20:00-05:00"))12fn:month-from-dateTime(fn:adjust-dateTime-to-timezone(xs:dateTime("1999-12-31T19:20:00-05:00"),
                  xs:dayTimeDuration("PT0S")))1