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 the same exact problem even using sqljdbc4 with Java 8.
Once i don´t need this field to make any type of comparison in the application i solved the issue by casting the field in my query like this: CAST(dbo.tblPwActividadeParticipanteDetalhe.Data AS VARCHAR(10)).