Sushant Torankar

Sushant Torankar

  • 2.1k
  • 92
  • 2.8k

Sql datetime format in local and shared hosting

Mar 30 2022 10:31 AM

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


Answers (5)