This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
A very simple mistake
Posted by Kishori Sharan on November 02, 2000 at 10:38 AM
Hi You are making a very simple mistake. In your date format you are saying hh:mm:ss:SSS, see the colon ( : ) used just before milli second part ( SSS ) , but you are syaing you get "2000-10-27 12:00:00.000" which uses a period ( . ) just after milli second part ( see the last period ). So just set the date format as yyyy-MM-dd hh:mm:ss.SSS and it will work. Thanx Kishori
Replies:
|