Date inconsistency while setting date to a particular attribute in microflow

Hi, I am setting up one of my date time attribute in microflow using this "trimToDaysUTC([%EndOfCurrentMonth%])" but I am having inconsistency issues. Some time it is setting up correct date suppose today is 24 April 2024 (4/24/2024) then end of month is 30 April which is correct. But some times that attribute has value 1 May 2024 (5/1/2024). Please let me know how to solve this issue. Thanks!
1 answers

Probably some localization issue, if you use trimToDaysUTC, you probably also want to use [%EndOfCurrentMonthUTC%] instead of [%EndOfCurrentMonth%]