File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Converting String to Date Object(mm/dd/yy) format
Date Format Problem And Hashtable ......
Date type conversion from dd/mm/yyyy to yyyy-mm-dd
how to get system date and format it
date time conversion