Returns the date in the default time zone, constructed from the given components (year, month, day, etc.). Same as toDate(int, int, int, int, int, int) but returns the date as the number of milliseconds since January 1, 1970, 00:00:00 GMT.
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. |
Type |
Description |
long |
The number of milliseconds since January 1, 1970, 00:00:00 GMT up to the date in the default time zone, constructed from the given components (year, month, day, etc.). |