Re: ToDate does not parse the date properly

2016-05-29 Thread vikas Madhusudana
Thanks. Its working fine now. Thanks, Vikas On Sat, May 28, 2016 at 3:10 AM, Rohini Palaniswamy wrote: > http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html > > You need to use '-MM-dd HH:mm:ss.SSS' instead of '-MM-DD > HH:mm:ss.SSS'. DD

Re: ToDate does not parse the date properly

2016-05-27 Thread Rohini Palaniswamy
http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html You need to use '-MM-dd HH:mm:ss.SSS' instead of '-MM-DD HH:mm:ss.SSS'. DD stands for day of the year and dd stands for day of the month. 11th day of the year can only be in January. So month always comes out as