If you would like to upgrade to a newer long-term support version of Studio Pro, see Moving from Mendix Studio Pro 8 to 9.
XPath Weekday-from-DateTime
Last modified: August 20, 2024
Overview
The weekday-from-dateTime()
function extracts the day of the week (as a number) from a Date and time attribute so it can be used to compare to a value. Values range from 1 to 7 (1 = Sunday, 7 = Saturday).
Example
This query returns all the logs where the day of the week in DateAttribute
is 6 (Friday):
//Logging.Log[weekday-from-dateTime(DateAttribute) = 6]