• Post Reply Bookmark Topic Watch Topic
  • New Topic

convertion from Date to Calendar and viseversa  RSS feed

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i have to convert the Calendar object to Date and the other way also. can anyone say how to to it..
thanks in advance
 
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure what your application is but the getTime() method of Calendar returns a Date object.

You might want to check the related javadocs.
 
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

As Prateek stated there is plenty of information in the Calendar and Date javadocs. Also do search this forum as there are lots and lots of previous posts on this topic that can help you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!