How to get the day date for a date and time variable

0
I have a dateandtime variable, witch contains something like 12/16/2021 10:30. For XPath search purposes I need to extract the day, say 12/16/2021 00:00. I have searched the forum, many questions and answers about formatting date and time. Most answers are about current date and time, but I haven’t find a solution applicable to a variable yet. Thanks everyone  
asked
1 answers
5

Massimo,

There is a function called TrimToDays that seems like what you need.  https://docs.mendix.com/refguide/trim-to-date#5-trimtodays-utc  In your microflow, you can change the value of your variable.  Assuming the Variable is called $ImportantDate, you would have a change variable action and put the following expression in that action:  trimToDays($ImportantDate)

Mike

answered