• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SimpleDateFormat problem

 
Manoj Raghuwanshi
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where do the dates come from? Are you sure they are really in the format you expect on both machines?
 
Manoj Raghuwanshi
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok i resolve the problem actually i was referring to old jar
thanks for u r help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic