java - Date returned by resultset.getString was wrong at some time -


i using mysql database.here have datetime field in table , in java code value using resultset.getstring method.it works fine returns wrong date or previous date.

here java code:

resultset.getstring("date_of_schedule") 

it returns '2015-09-21' correctly return '2015-09-20' date.can explain me doing wrong.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -