aspose file tools*
The moose likes Beginning Java and the fly likes how to quickly get current year/month ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to quickly get current year/month ?" Watch "how to quickly get current year/month ?" New topic
Author

how to quickly get current year/month ?

Steve Mutanson
Ranch Hand

Joined: Apr 15, 2003
Posts: 67
How to quickly get current year and month ? I guess there are different ways but can somebody show me an easy way ?
thanks,
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
One of the ways
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

if you just want a String representation of the current date, use the SimpleDateFormat class:

Jamie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to quickly get current year/month ?