How to convert current time to IST

Hi,

When I type Date.Now.ToString in assistedge studio will get the current time. But how I do convert current time to IST. Please help

Regards,
Taeeb

Hi

Use the Standard C# methods for timezone conversion which you can find in microsoft website.

Then, use the assign activity in studio.

Eg -

var isdate = TimeZoneInfo.ConvertTimeFromUtc(utcdate,
TimeZoneInfo.FindSystemTimeZoneById("India Standard Time"));

Regards,
Shubham.

Hi,

Date.Now will return the system locale Date Time.

Suggesting an alternate approach.

In Assign block ,
var1 = Date.UtcNow.ToUniversalTime()

In second Assign block
var 2 = var1.AddHours(5.5)

var2 will have time in IST

image

Regards,
Amit Anand