Why is this showing me tomorrow’s date?
IF({How Many Days}>6,{Bill Date},IF(AND(Upload=1,{tracking-number}=BLANK()),TODAY(), {Last Update Tracking}))
Why is this showing me tomorrow’s date?
IF({How Many Days}>6,{Bill Date},IF(AND(Upload=1,{tracking-number}=BLANK()),TODAY(), {Last Update Tracking}))
Manually-entered dates will honor your local timezone settings. However, calculated dates (including those created by the TODAY function) often assume the time should be based on GMT. Sometimes you can fix this by tweaking the options in the Formatting tab of the field’s properties. Other times it requires modifying the field to force date items to a specific timezone by wrapping them inside the SET_TIMEZONE function.
This is what I get when I try the “SET_TIMEZONE function”
And this is my Formula:
IF({How Many Days}>6,{Bill Date},IF(AND(Upload=1,{tracking-number}=BLANK()),99999, SET_TIMEZONE({Last Update Tracking})))
This is what I get when I try the “SET_TIMEZONE function”
And this is my Formula:
IF({How Many Days}>6,{Bill Date},IF(AND(Upload=1,{tracking-number}=BLANK()),99999, SET_TIMEZONE({Last Update Tracking})))
You somehow got the URL and text options reversed in your example image. Clicking your original tries to open a site named “screenshot”. That link should be:
Sorry that I wasn’t more clear. SET_TIMEZONE requires you to tell it which timezone you want, and it must be used in conjunction with DATETIME_FORMAT. More info on the supported timezones can be found here:
To prevent records with no date from displaying an error, you’ll need to wrap the date formatting inside an IF function. Here’s my modified version of your formula with these changes, using my own timezone as an example:
IF(
{How Many Days}>6,
{Bill Date},
IF(
AND(
Upload=1,
{tracking-number}=BLANK()
),
99999,
IF(
{Last Update Tracking},
DATETIME_FORMAT(
SET_TIMEZONE(
{Last Update Tracking},
"America/Chicago"
), "YYYY-MM-DD"
)
)
)
)
Thanks for your help, it works excellent
Let me please ask you a side note, which app are you using to create this nice IF statements here?
Thanks for your help, it works excellent
Let me please ask you a side note, which app are you using to create this nice IF statements here?
I use BBEdit on the Mac, but any plain text editor will do the trick. It just makes visualizing the structure (and making sure the correct number of parentheses are in place) a lot easier.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.