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
Nitin SontakkePosted Apr 27, 2022, 4:53 AM
Kapil Singh KumawatPosted Apr 25, 2022, 10:13 AM
HI,
Try using GetUTCDate() method for this.
Gajendra JangidPosted Apr 3, 2022, 5:50 PM
Sachin SinghPosted Mar 30, 2022, 1:39 PM
Muhammad Imran AnsariPosted Mar 30, 2022, 11:52 AM