Referencing a date field containing time in Formula will basically result in UTC/GMT time, regardless of the timezone setting in the date field. And if without time, the date wouldn't have changed.
Currently the SET_TIMEZONE function does not work. (This feature seems to have been disabled since the time zone format setting was added to the Date type.)
In this case, you can use the Dateadd function to correct the time difference.
DATETIME_FORMAT(DATEADD({π’ Start Time}, -4, 'hours'), 'YYYY-MM') = DATETIME_FORMAT(NOW(), 'YYYY-MM')
You need Change add hours your time difference.
Thanks @Semsongleng-KH! Here is what worked for me ( @Sho SET_TIMEZONE appears to be working fine for me)
DATETIME_FORMAT(SET_TIMEZONE({π’ Start Time}, 'America/Chicago'), 'YYYY-MM') = DATETIME_FORMAT(NOW(), 'YYYY-MM')
I also have a "Is Last Month" formula:
DATETIME_FORMAT(SET_TIMEZONE({π’ Start Time}, 'America/Chicago'), "YYYY-MM") = DATETIME_FORMAT(DATEADD(NOW(), "month", -1), "YYYY-MM")
The "month" formula:
DATETIME_FORMAT({π’ Start Time},'MM')
Oh i see, so SET_TIMEZONE function requires together with DATETIME_FORMAT function. I understand.
Update: I guess I can use the βmonth countβ formula instead that works and returns zeros for every current month entry.
(DATETIME_FORMAT({📅 Date}, 'MM') - DATETIME_FORMAT(TODAY(), 'MM')) +((DATETIME_FORMAT({📅 Date}, 'YYYY') - DATETIME_FORMAT(TODAY(), 'YYYY')) * 12)
ββββββββββββββ-
Iβm reusing this formula on another table. However, this date field doesnβt have time enabled.
When I setup the formula it is not including the first entry of the month (Dec 1).
DATETIME_FORMAT(SET_TIMEZONE({📅 Date}, 'America/Chicago'), 'YYYY-MM') = DATETIME_FORMAT(NOW(), 'YYYY-MM')
