aspose file tools*
The moose likes JDBC and the fly likes How to get day, month, and year seperate from date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to get day, month, and year seperate from date" Watch "How to get day, month, and year seperate from date" New topic
Author

How to get day, month, and year seperate from date

Kay Tracid
Ranch Hand

Joined: Mar 06, 2002
Posts: 148
Hi,
I want to get day, month and year from the Date object. How can I do this?
Thanks a lot!
prabhat kumar
Ranch Hand

Joined: Apr 11, 2001
Posts: 114
use
Calendar.get(Calendar.DAY_OF_MONTH).
and so on
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to get day, month, and year seperate from date