A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Difference in Date Calendar classes
Joined: Jun 05, 2001
Nov 10, 2006 13:17:00
Can someone explain the difference between the Date, Calendar and GregorianCalendar? I'm not sure how each is used.
Joined: Aug 24, 2005
Nov 10, 2006 19:40:00
Date represents a specific point in time.
Calendar is an abstract class that defines methods for converting, comparing or manipulating points in time.
GregorianCalendar extends Calendar and implements the logic necessary for converting, comparing or manipulating dates according to the calendar created by Pope Gregory XIII.
subject: Difference in Date Calendar classes
How to display search time?
Find difference between two dates by elimating weekends
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014