|Defined in: XForms 1.0|
|Parameters: string dayTimeDuration (required)|
|Return type: number|
This function computes a whole number of months that is equivalent in length to the yearMonthDuration parameter (formatted according to XML Schema rules).
This function makes the distinction of working on a yearMonthDuration, which is a more fine-grained datatype than defined by XML Schema. Chapter 4, XML Schema in XForms discusses this in greater detail.
This example returns 14: