I am setting the date to 2013-01-01 00:00:00, but the date comes out as Fri Feb 01 00:00:00 GMT+01:00 2013
Why?
Calendar calendar = Calendar.getInstance(
1 means Feburary. 0 is January. Months are indexed starting from 0. It's always better to use mnemonics: Calendar.JANUARY
Calendar.JANUARY