This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes SimpleDateFormat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "SimpleDateFormat" Watch "SimpleDateFormat" New topic
Author

SimpleDateFormat

Maureen Charlton
Ranch Hand

Joined: Oct 04, 2004
Posts: 218
Is it feasible to set the SimpleDateFormat to just month and year i.e.

SimpleDateFormat sdf = new SimpleDateFormat ("MM-yy");
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

Yes.
Maureen Charlton
Ranch Hand

Joined: Oct 04, 2004
Posts: 218
Steve,

Thanks for responding. Much appreciated.
Maureen Charlton
Ranch Hand

Joined: Oct 04, 2004
Posts: 218
Should anyone find it helpful when following this thread my code in the end was as follows:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SimpleDateFormat
 
Similar Threads
how to get system date and format it
Date type conversion from dd/mm/yyyy to yyyy-mm-dd
date time conversion
Converting String to Date Object(mm/dd/yy) format
Date Format Problem And Hashtable ......