Mendix 7 is no longer supported unless you have Extended Support (for details, please contact Mendix Support). Mendix 7 documentation will remain available for customers with Extended Support until July, 2024.

XPath day-of-year-from-dateTime

Last modified: June 29, 2022

1 Overview

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

2 Example

This query returns all the logs where the amount of days (in the year) in DateAttribute is 30 (for example, “2011-01-30”):

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