Managinng Date and Time of Indian Timezone for US Servers with Asp.Net C# code
TimeZoneInfo INDIAN_ZONE = TimeZoneInfo.FindSystemTimeZoneById("India Standard Time");
DateTime indianTime = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, INDIAN_ZONE);
string date1 = indianTime.ToShortDateString();
string currentdate = Convert.ToDateTime(date1, CultureInfo.CurrentCulture).ToString("M/d/yyyy");
Comments
Post a Comment