|
-
May 9th, 2000, 08:52 AM
#1
Converting util.Date to util.Calendar
I've read a date from a database (java.sql.Date).
How can I convert this type to java.util.Calendar
or java.util.GregorianCalendar in JDK 1.2?
The getTime()-Method of java.util.Date is the only Method that is not deprecated, but the Method setTimeInMilis(long) in java.util.Calendar is protected.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|