This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "SimpledateFormat class issue. " Watch "SimpledateFormat class issue. " New topic
Author

SimpledateFormat class issue.

Tontang Bei
Ranch Hand

Joined: Oct 21, 2006
Posts: 130


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

Joined: Feb 20, 2007
Posts: 76



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

Joined: Oct 21, 2006
Posts: 130
Thanks
 
GeeCON Prague 2014
 
subject: SimpledateFormat class issue.