Date converted from GregorianCalendar Mon Jul 06 20:08:38 IST 2015. / Program 1.2) Convert Calendar to Date. import java.util.CalendarSystem.out.println("Date converted form Calendar " date) Aside: If you use dates a lot in your application, especially if you are converting dates or using multiple time zones, I would highly recommend using the JodaTime library.Tags java methods unix-timestamp gregorian-calendar. Converting java.util.GregorianCalendar to java.time.ZonedDateTime. java.time.OffsetDateTime - Calendar and UTC Offset. java.time.OffsetDateTime Usage Examples. java.time.LocalDateTime - Local Date and time without Timezone.
Partial Date and Time Objects and Classes. Creating Date in java using Calendar, GregorianCalendar and java.