Both TODAY()
and NOW()
are calculated based on GMT. Specifically, TODAY()
uses the current day in GMT, but with the time set to midnight. When GMT changes to a new day, so will TODAY()
. NOW()
uses the actual current GMT time.
To compare a date field (manually-entered) against TODAY()
, you’ll need to format both dates and compare the formats. However, this means forcing TODAY()
to format based on your local timezone. Here’s an example using my local (US Pacific) timezone:
DATETIME_FORMAT(Date, "L") = DATETIME_FORMAT(SET_TIMEZONE(TODAY(), "America/Los_Angeles"), "L")
That will output a 1 when the {Date}
field matches today, and 0 otherwise. Change “America/Los_Angeles” to your local timezone using the relevant value from this page:
Both TODAY()
and NOW()
are calculated based on GMT. Specifically, TODAY()
uses the current day in GMT, but with the time set to midnight. When GMT changes to a new day, so will TODAY()
. NOW()
uses the actual current GMT time.
To compare a date field (manually-entered) against TODAY()
, you’ll need to format both dates and compare the formats. However, this means forcing TODAY()
to format based on your local timezone. Here’s an example using my local (US Pacific) timezone:
DATETIME_FORMAT(Date, "L") = DATETIME_FORMAT(SET_TIMEZONE(TODAY(), "America/Los_Angeles"), "L")
That will output a 1 when the {Date}
field matches today, and 0 otherwise. Change “America/Los_Angeles” to your local timezone using the relevant value from this page:
Thank you! That’s very helpful.