File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set the calendar ?

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to set the calendar using the Calendar object for the particular hour of the day say 9AM ?
I know we can do it using the Calendar.add() , but those are for minutes and seconds , what about the hour ?

Thanks in advance.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33693
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Android looks like it has Calendar.set just like Java does. Why can't you use that?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic