• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set the calendar ?

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • 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
Sheriff
Posts: 35977
422
Eclipse IDE Java VI Editor
  • 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?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!