aspose file tools*
The moose likes Java in General and the fly likes SimpleDateFormat problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "SimpleDateFormat problem" Watch "SimpleDateFormat problem" New topic
Author

SimpleDateFormat problem

Manoj Raghuwanshi
Ranch Hand

Joined: Jun 20, 2004
Posts: 75
hi i am using SimpleDateFormat to parse a string coming from xml field

DateFormat dateFormat = new SimpleDateFormat(
"yyyy-MM-dd hh:mm:ss");

i am using parse() method itn is working fine on my machine(win 2K)
but when i am running the same on other machine(win xp) it is throwing
parse exception
any one have idea please tell me
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Where do the dates come from? Are you sure they are really in the format you expect on both machines?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Manoj Raghuwanshi
Ranch Hand

Joined: Jun 20, 2004
Posts: 75
ok i resolve the problem actually i was referring to old jar
thanks for u r help
 
 
subject: SimpleDateFormat problem