getInstance()

Gets a calendar using the default time zone and locale. The Calendar returned is based on the current time in the default time zone with the default locale.

Syntax

Calendar getInstance()

Usage

Calendar.getInstance().toDate()