• Post Reply Bookmark Topic Watch Topic
  • New Topic

convert java.util.date to java.util.calendar  RSS feed

 
Arundhathi Menon
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Can you please tell me how can I convert java.util.date to java.util.calendar.

Thanks in advance
Menon
[ January 17, 2007: Message edited by: Arundhathi Menon ]
 
Ricky Martaputra
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply call the setTime method from Calendar object, which has an argument Date object.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!