fromDate()
Gets a calendar set to the time of the given date.
Syntax
Calendar fromDate(Date date [, String timeZone [, String locale] ])
- date is the date used to get the Calendar.
- timeZone (optional) is the time zone used to get the Calendar. If timeZone is not specified, the Calendar is based on the specified time in the default time zone.
- locale (optional) is the locale used to get the Calendar. If locale is not specified, the Calendar is based on the default locale.