This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Android and the fly likes How to set the calendar ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to set the calendar ?" Watch "How to set the calendar ?" New topic

How to set the calendar ?

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

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
internet detective

Joined: May 26, 2003
Posts: 30130

Android looks like it has Calendar.set just like Java does. Why can't you use that?

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: How to set the calendar ?
Similar Threads
Getting system time inside while loop
hours and minutes set/get sql timestamp
Calendar Class
Calendar.set(HOUR_OF_DAY, 1) confusion
How do I set a 24 calendar in mpxj ?