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 stands for day of the year
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 Janu