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 Beginning Java and the fly likes Calendar Class 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 » Java » Beginning Java
Bookmark "Calendar Class" Watch "Calendar Class" New topic
Author

Calendar Class

P. Sagdeo
Ranch Hand

Joined: Nov 13, 2003
Posts: 67
Can somebody fill me in on how the Calendar class works. I'm not sure exactly on how to refresh the date/hour/second, etc.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Parth S.,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
P. Sagdeo
Ranch Hand

Joined: Nov 13, 2003
Posts: 67
Is this ok?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Thank you, P. Sagdeo.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Can you give a little more detail about "refresh"? Do you want a new date every time the application runs, everytime you push a button, or every second with no help from the user?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I'm not sure, but perhaps you're trying to figure out doing something similar to the following example.
 
Don't get me started about those stupid light bulbs.
 
subject: Calendar Class
 
Similar Threads
Adding value to A Time
checking for a range of dates
checking for date
Abstract class Calendar
3 Calendar Months calcuation