Java JDBC: dates consistently two days off

前端 未结 9 1846
孤城傲影
孤城傲影 2020-12-14 16:53

I am using Java JDBC to write a date to SQL server 2008 and then read it back.
The date that is read back is consistently two days earlier than the date that was actuall

9条回答
  •  佛祖请我去吃肉
    2020-12-14 17:10

    This issues is coming when we are using date DataType in Microsoft sql. I have fixed this to change date to datetime.

提交回复
热议问题