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
For those who are using maven, use this for java 8:
com.microsoft.sqlserver mssql-jdbc 6.2.1.jre8
As it is pointed out, if you use an old version, you may face this problem, and it is not easy to debug.