Return month integer value from date argument.
The following construct(s) refer to this construct:
fn:month-from-date(xs:date? $arg) => xs:integer?
This function returns an integer value between 1 and 12, representing the month component of the localized value of the argument value. The localized value is the value in its original timezone or without timezone. If the argument is an empty sequence, the empty sequence is returned.
$arg |
argument value of type |
---|
This function call returns the month component of the current date:
month-from-date(current-date())
This function call returns the month component of the specified date value which is 5:
month-from-date(xs:date("1999-05-31-05:00"))