Saving Dates in SQLServer

后端 未结 7 1325
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 00:16

I have a legacy application where the input is a date string, i.e.:

06/12/2009

The format of the input is always a string, and i

相关标签:
7条回答
  • 2021-01-05 00:42

    I would recommend storing all dates in UTC time when they are placed into the database. It will be consistent that way.

    Storing dates like this seems to work well...

    YYYY-MM-DD
    
    0 讨论(0)
提交回复
热议问题