I am trying to convert a UTC Date Time format to PST. Please help me out
I tried local time but I am in IST, need it in PST
@siddhi.r.wandre
Can you try
TimeZoneInfo.ConvertTime(YourUTCDateTimeVar, TimeZoneInfo.FindSystemTimeZoneById("Pacific SA Standard Time"))
Take the below three syntax in Assign activity:
utcDateTime= DateTime.UtcNow
pstTimeZone= TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time")
pstDateTime= TimeZoneInfo.ConvertTimeFromUtc(utcDateTime, pstTimeZone)
utcDateTime
, pstDateTime
is of DataType System.DateTime
pstTimeZone
is of DataType System.TimeZoneInfo
Hope it helps!!