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 year-from-dateTime

Last modified: June 29, 2022

1 Overview

The year-from-dateTime() function extracts the amount of years from a DateTime attribute so it can be used to compare to a value.

2 Example

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

1
//Logging.Log[year-from-dateTime(DateAttribute) = 2011]