toDate

toDate( year, month, day, hourOfDay, minute, second )

Description

Returns the date in the default time zone, constructed from the given components (year, month, day, etc.).

Parameters

Name

Type of value

Description

year

int

The year.

month

int

The number of month (0-based. e.g., 0 for January)

You can use the following constants as a value:

JANUARY

FEBRUARY

MARCH

APRIL

MAY

JUNE

JULY

AUGUST

SEPTEMBER

OCTOBER

NOVEMBER

DECEMBER

day

int

The day of the month.

hourOfDay

int

The hour of day (using 24-hour clock).

minute

int

The minute.

second

int

The second.

Result

Type

Description

java.util.Date

The date in the default time zone, constructed from the given components (year, month, day, etc.).