I have meet a very weird situation. I use Eclipse to connect to a remote SQL Server 2008 database, and I get the correct date. But when my colleague copies the code and runs it, all the dates are 2 days earlier than they should be. For example, I get 2011-02-22 and he gets 2011-02-20.
A lot of thanks!
String test = "select * from Readings";
ResultSet set = state.executeQuery(test);
while (set.next()) {
String row="";for(int i=1;i<10;i++){
row += set.getString(i) + ",";
arr.add(row);
}
}