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

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  
1 answers


There is a function called TrimToDays that seems like what you need.  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)