convert getdate to ist c#

90

convert getdate to ist c# -

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

convert getdate to ist c# -

DateTime utcTime = inputDateTime.ToUniversalTime();

convert getdate to ist c# -

DateTime utcdate = DateTime.ParseExact("6/15/2014 12:00:00 AM", "M/dd/yyyy 
                                       h:mm:ss tt",CultureInfo.InvariantCulture);
var istdate = TimeZoneInfo.ConvertTimeFromUtc(utcdate,
TimeZoneInfo.FindSystemTimeZoneById("India Standard Time"));

Comments

Submit
0 Comments