File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Behaviour of parse() method in SimpleDateFormat

 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to use SimpleDateFormat to format the date, as in the following code.




The output I get is : 14-Jan-2003. The month is displayed as "Jan" invariably for all the dates.

Any clue, why such a thing is happening, or should parse() method be used more appropriately?

Thanks a lot for your help.

Cheers,
Ram
[ July 27, 2005: Message edited by: Ramaswamy Srinivasan ]
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lowercase 'm' is for minutes...

Change this...
...to this...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic