- Description
- 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.
- 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 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.).
-
How can we improve this article?
-