month-from-dateTime

The month portion of a date/time

Description

The fn:month-from-dateTime function returns the month portion of an xs:dateTime value, as an integer between 1 and 12 inclusive.

Parameters

Description

arg:dateTime()

Examples

XPath

Results

month-from-dateTime(xs:dateTime(‘2006-08-15T10:30:23’))

8

See Also