Dear All,
I need your help to solve an issue in datetime difference in my asp.net c# project.
The project already hosted in godaddy.
The issue is that when i run my project in local host, date & time working good. But when i run website from hosted server, date time showing a different time zone.
In my c# code , i wrote like this to get current time zone.
var ArTimeZone = TimeZoneInfo.FindSystemTimeZoneById(TimeZoneInfo.Local.Id);
and in insert function parameter , i assigned below format.
Convert.ToDateTime(CurrentDateTime.ToString("dd/MM/yyyy hh:mm:ss tt")));

Ashish RathiRank #2,107 · 678 reputationPosted May 13, 2019, 2:41 AM EDT
Bineeshcp Viswanath125 reputationPosted May 13, 2019, 2:46 AM EDT
Sivakumar KonetiRank #1,556 · 1K reputationPosted May 13, 2019, 2:59 AM EDT
Madan ShekarRank #428 · 5.9K reputationPosted May 13, 2019, 4:30 AM EDT
https://in.godaddy.com/help/set-time-zone-and-date-preferences-2815