Invalid date display during a leap year

0
"Hello, I've been attempting to retrieve today's date using various functions, but each time, I seem to be getting yesterday's date instead. Has anyone else experienced this problem before?"   Attaching screenshots for your reference  Thanks  ​​​​​​​  
asked
1 answers
0

In the one action, you're getting the beginning of the current day in UTC. The beginning of this day in UTC is yesterday in your local time (session time). When you format the datetime and make it localized, it shows you yesterday for that reason. 

 

Using formatDateTimeUTC instead should give you the result that you want if you're looking for the UTC date.

answered