File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SimpledateFormat class issue.

 
Tontang Bei
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The output I get is:
yyyy=2007
mm=0
dd=5

the month is shown as 0. The month should be shown as 12. Please help
 
Srikanth Ramu
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



For month the representation is MM and m represents minute in hour. For more details refer:

http://java.sun.com/j2se/1.5.0/docs/api/java/text/SimpleDateFormat.html
 
Tontang Bei
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic