cancel
Showing results for 
Search instead for 
Did you mean: 

Get offset from a date

vipulk10
New Contributor III

hi all,
i have been trying to get offset in a date format. i m using

toLocaleDateTimeString({“timeZone”:$dealerTimeZone, “format”:“yyyy-MM-dd'T'HH:mm:ss Z”})

since Z denotes offset, but its not showing offset in output ie -0800 or something like this.Please help

5 REPLIES 5

vipulk10
New Contributor III

del you are correct, but i am not getting the desired response . currently I am using

toLocaleDateTimeString({“timeZone”:$dealerTimeZone, “format”:“yyyy-MM-dd’T’HH:mm:ss Z”})

Z is not parsed correctly and offset is not shown in the output