convert getdate to ist c# code example
Example 1: convert getdate to ist c#
var istdate = TimeZoneInfo.ConvertTimeFromUtc(utcdate,
TimeZoneInfo.FindSystemTimeZoneById("India Standard Time"));
Example 2: convert getdate to ist c#
DateTime utcTime = inputDateTime.ToUniversalTime();
Example 3: 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"));