Hi @Abhijeet_Rastogi - your formula works fine for me:

I used the slightly amended formula of:
IF({Due Date}, {Due Date}, SET_TIMEZONE(TODAY(), 'America/Los_Angeles'))
where, on the first argument of the IF you can say “IF {Due Date}” which translates as “if Due Date exists”. But both formula versions work OK for me.
Take a look here for instructions to share a base - if we can have a look directly at what you are doing someone might be able to help.
JB
Hi @Abhijeet_Rastogi - your formula works fine for me:

I used the slightly amended formula of:
IF({Due Date}, {Due Date}, SET_TIMEZONE(TODAY(), 'America/Los_Angeles'))
where, on the first argument of the IF you can say “IF {Due Date}” which translates as “if Due Date exists”. But both formula versions work OK for me.
Take a look here for instructions to share a base - if we can have a look directly at what you are doing someone might be able to help.
JB
Hi @JonathanBowen, probably because I’m a new member, I don’t have permissions to post a link here so I can’t share the base here.
I tried your formula too, which is definitely cleaner, it still shows me the older date. If it matters, I changed the timezone’s recently but my local time on the laptop is set to Los_Angeles.
Hi @JonathanBowen, probably because I’m a new member, I don’t have permissions to post a link here so I can’t share the base here.
I tried your formula too, which is definitely cleaner, it still shows me the older date. If it matters, I changed the timezone’s recently but my local time on the laptop is set to Los_Angeles.
You might need to set the timezone for your due date as well. Even though it should just be a straight copy of the reference date, Airtable will sometimes assume a different timezone when referencing it. Try this and see if it works:
SET_TIMEZONE(IF({Due Date}, {Due Date}, TODAY()), 'America/Los_Angeles')
When testing this myself, I had to turn the GMT switch on for the formula, otherwise TODAY()
was a day off. I swear, of all the features of Airtable, its handling of time and dates can often be the most confusing.
You might need to set the timezone for your due date as well. Even though it should just be a straight copy of the reference date, Airtable will sometimes assume a different timezone when referencing it. Try this and see if it works:
SET_TIMEZONE(IF({Due Date}, {Due Date}, TODAY()), 'America/Los_Angeles')
When testing this myself, I had to turn the GMT switch on for the formula, otherwise TODAY()
was a day off. I swear, of all the features of Airtable, its handling of time and dates can often be the most confusing.
Hi @Justin_Barrett,
Thanks for suggesting the GMT option. For now, I had to turn it on for this to be working. The SET_TIMEZONE doesn’t work correctly if the GMT property is not set.
Abhijeet