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


Win a copy of Java 8 in Action this week in the Java 8 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
compile error ?
Days between java.sql.Date and java.util.Date objects
Date format
java.sql.date to string
preparedStatement.setDate and java.util.Date