wood burning stoves 2.0*
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
 
wood burning stoves
 
subject: How to get day, month, and year seperate from date
 
Similar Threads
Retrive Month and Year
how to generate sql date
scalar functions
Retrieve value from a DateField
Date problem