File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes SimpledateFormat class issue. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "SimpledateFormat class issue. " Watch "SimpledateFormat class issue. " New topic

SimpledateFormat class issue.

Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130

The output I get is:

the month is shown as 0. The month should be shown as 12. Please help
Srikanth Ramu
Ranch Hand

Joined: Feb 20, 2007
Posts: 76

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

Joined: Oct 21, 2006
Posts: 130
I agree. Here's the link:
subject: SimpledateFormat class issue.
Similar Threads
System Date
Code review required for converting dateformat
cannot find symbol
Months and years
Convert date in difference format