Saving Dates in SQLServer

后端 未结 7 1356
佛祖请我去吃肉
佛祖请我去吃肉 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
    

提交回复
热议问题