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
I had exactly the same problem. The 2 day offset went away as soon as I used java 6 runtime environment instead of a java 7 runtime environment.
So it is possibly also a difference between the JDBC version 4.1 backwards compatibility with JDBC 3 drivers.