You can see that from Output
Temp is 2020-01-05
and I am expecting the datetimefirstofmonth will return 2020-01-01
but it returned 2022 instead
is there any misunderstanding of the formulas?
DateTimeFirstOfMonth() Is designed to give only first of current month. To get first of given month use formula like below
DateTimeFormat([Temp],"%Y-%m-01")
Workflow:
Hope this helps : )
so it basically ignores the year?
No lets say current month is Feb even though Temp might be 2020-01-05 it will return 2022-02-01. DateTimeFirstOfMonth() will always return first day of current month Similar to DateTimeToday()
Hope this helps : )