I am parsing a date, where I am passing 2011-02-10 00:00:00:0
, and I am getting 2011-01-10
as the result. Is this wrong? Please help.
DateFormat df = new SimpleDateFormat("yyyy-mm-dd");
today = df.parse(datecollection);
See Question&Answers more detail:os