XPath Month-From-DateTime

Last modified: February 13, 2024

1 Overview

The month-from-dateTime() function extracts the month value from a Date and time attribute so it can be used to compare to a value.

2 Example

This query returns all logs where the month value DateAttribute is 12 (December). For example, “2011-12-30”:

1
//Logging.Log[month-from-dateTime(DateAttribute) = 12]