XPath Day-of-Year-from-DateTime

Last modified: February 13, 2024

1 Overview

The day-of-year-from-dateTime() function extracts the day in the year from a Date and time attribute so it can be used to compare to a value. Values range from 1 (January 1) to 366 (due to leap years).

2 Example

This query returns all the logs where the day in the year in DateAttribute is 30 (for example, “2011-01-30” and “2012-01-30”):

1
//Logging.Log[day-of-year-from-dateTime(DateAttribute) = 30]