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

Popular posts from this blog

Uploading Image to Sql Server Image Datatype in asp.net using fileupload Control

📉 Study: African Women Face Higher Risk of Job Loss to AI in Outsourcing Sector

🎨 Is There a Future for Graphic Designers in the AI Era?