File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date to Calendar object

 
Arun Boraiah
Ranch Hand
Posts: 233
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have a java.util.Date object storing some date.
Now i want to convert to java.util.Calendar object because most of the methods are deprecated in Date class and suggested to use Calendar class instead.
Thanks in advance.
Arun
 
Marcel de Jong
Ranch Hand
Posts: 54
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arun,
to convert a java.util.Date to a Calendar, just get an instance of Calendar and then set the time with the method setTime(java.util.Date)
Regards,
Marcel
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic