This content has been marked as final. Show 2 replies
Date always hold the number of milliseconds since the epoch (1/1/1970 UTC). It has no concept of TimeZone or Daylight Saving or Leap Years/Seconds.
Calendar and SimpleDateFormat know all about TimeZone and Daylight Saving and Leap Years/Seconds. SimpleDateFormat takes them into account when formatting and parsing. GregorianCalendar takes them into account when you extract field values.
Date always reflects the true time and is not concerned with how Windows treats the date/time. It does not loose or gain an hour when Daylight Saving kicks in or out but Calendar and SimpleDateFormat handle the change in displayed values.