Skip to main content

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.

You misspelled the timezone indicator. It should be Los_Angeles (with an underscore), not Los Angeles (with a space).


You misspelled the timezone indicator. It should be Los_Angeles (with an underscore), not Los Angeles (with a space).


Aha! I knew it was something simple. Thanks for the help.


Reply