This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "SimpleDateFormat problem" Watch "SimpleDateFormat problem" New topic

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
jQuery in Action, 2nd edition
subject: SimpleDateFormat problem
Similar Threads
Date Validation !!!
parsing string in java
How to Convert String into Date
Inserting formatted Date into DB from java
A SimpleDateFormat for ISO 8601