Studio Pro 8 has reached its end of support. To upgrade to a supported version, see Moving from Mendix Studio Pro 8 to 9.
Studio Pro 8 has reached its end of support. To upgrade to a supported version, see Moving from Mendix Studio Pro 8 to 9.
XPath Year-from-DateTime
Last modified: August 20, 2024
Overview
The year-from-dateTime() function extracts the amount of years from a Date and time attribute so it can be used to compare to a value.
Example
This query returns all the logs where the amount of years in DateAttribute is "2011" (for example, "2011-12-30"):
//Logging.Log[year-from-dateTime(DateAttribute) = 2011]