Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save Persian date time in SQL server?

Tags:

In past projects, I tried to save my time format in Gregorian dates and convert Gregorian dates to Persian in the logic layer of application, but I'm tired of doing it in that way.

I need save and restore date time with format of Persian in sql server without any conversion

Can type of datetime2 in sql server store Persian date time?

If not, what is the best way to store Persian date time?