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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get day, month, and year seperate from date
 
Similar Threads
scalar functions
Retrive Month and Year
Retrieve value from a DateField
how to generate sql date
Date problem