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 How to convert a java.sql.Date to Calendar object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to convert a java.sql.Date to Calendar object" Watch "How to convert a java.sql.Date to Calendar object" New topic
Author

How to convert a java.sql.Date to Calendar object

Mahendran Aiyappan
Ranch Hand

Joined: Sep 05, 2005
Posts: 102
Hi guys,

I need to know how to convert a java.sql.Date to GregorianCalendar object.

Thanks for your comments.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Have a look at the Calendar JavaDocs - in particular the setTime() and setTimeInMillis() methods.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to convert a java.sql.Date to Calendar object
 
Similar Threads
java.sql.date to string
Date format
compile error ?
Days between java.sql.Date and java.util.Date objects
preparedStatement.setDate and java.util.Date