File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Converting from java.util.Date to java.util.GregorianCalendar 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 » Java in General
Bookmark "Converting from java.util.Date to java.util.GregorianCalendar " Watch "Converting from java.util.Date to java.util.GregorianCalendar " New topic
Author

Converting from java.util.Date to java.util.GregorianCalendar

Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 515
Can someone help me convert from java.util.Date to java.util.GregorianCalendar w/out going through deprecated methods.
Thanks!


By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I'd bet some useful information would turn up after a quick search on the beginners forum.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
The setTime() that is inherited from Calendar takes a Date.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Just watch out for those surly bartenders they have there.


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting from java.util.Date to java.util.GregorianCalendar
 
Similar Threads
Date function
Please help with JAVA dates (URGENT!)
Date Problem
Enterprise application: handling date and time
Date format