5
Answers

Sql datetime format in local and shared hosting

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)