aspose 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
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