Oct 01, 2021 09:07 PM
I’m having trouble getting DATETIME_FORMAT to work, and I can’t figure out what I’m missing.
My date field is in local time. I wanted to get week numbers from the date, which I have working fine, but it is seeing dates in UTC I think, and DATETIME_FORMAT did not work.
Formula: DATETIME_FORMAT(SET_TIMEZONE(Date,'America/Los Angeles'),'MM/DD/YYYY')
Referencing the red box you can see two entries with incorrect format. I’m a little stumped.
Solved! Go to Solution.
Oct 01, 2021 09:54 PM
You misspelled the timezone indicator. It should be Los_Angeles
(with an underscore), not Los Angeles
(with a space).
Oct 01, 2021 09:54 PM
You misspelled the timezone indicator. It should be Los_Angeles
(with an underscore), not Los Angeles
(with a space).
Oct 04, 2021 10:56 AM
Aha! I knew it was something simple. Thanks for the help.