hello,
I am saving datetime in sql as UserMaster u= Datetime.Now, where it saves date in IST format on local
But I got USA based shared sql hosting, when I am saving same date , it got saved in Mountain or Pacific timezone
So how can I save date in local IST timezone format to hosting.
So any way I can save date in local IST timezone
I am using MVC and SQL

Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Mar 30, 2022, 7:52 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Mar 30, 2022, 9:39 AM EDT
Gajendra JangidRank #157 · 14.9K reputationPosted Apr 3, 2022, 1:50 PM EDT
Kapil Singh KumawatRank #735 · 3.2K reputationPosted Apr 25, 2022, 6:13 AM EDT
HI,
Try using GetUTCDate() method for this.
Nitin SontakkeRank #264 · 9.6K reputationPosted Apr 27, 2022, 12:53 AM EDT