โ10-18-2022 01:54 AM
Hi,
I am getting error while converting Datetime value from UTC to EST, suggest the expression for below UTC date value.
2021-10-25 04:00:00
โ10-18-2022 03:09 AM
Hi @kumar25,
Can you try this expression:
Date.parse(โ2021-10-25 04:00:00โ).toLocaleDateTimeString({โtimeZoneโ:โAmerica/New_Yorkโ, โformatโ:โyyyy-MM-dd HH:mm:ssโ})
Donโt forget to replace the double quotes:
BR,
Marjan
โ10-18-2022 02:33 PM
@kumar25: The solution given by @marjan.karafiloski should work as I would have given the same solution.
I agree to @marjan.karafiloskiโs point that while copying the logic, youโll have to explicitly remove the double quotes and put it back as it will give you an error, if you donโt do it.