DateTimeUtcToLocalTime Function - microsoft/MIMWAL GitHub Wiki
Syntax
DateTime DateTimeUtcToLocalTime(date:datetime, timeZoneId:string)
Description
Convert a date to the local time or specified time zone.
Remarks
If the first input parameter (date) is null, a null value is returned. If the second input parameter (timeZoneId) is null, the date converted to the local time on the server is returned.
Supported Version
2.20.0523.0 and later
Examples
DateTimeUtcToLocalTime(DateTimeNow())
DateTimeUtcToLocalTime(DateTimeNow(), [//Target/TimeZone/TimeZoneId])