Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Algorithms.Date
Stay organized with collections
Save and categorize content based on your preferences.
Creates a Date.
Usage | Returns | ee.Algorithms.Date(value, timeZone) | Date |
Argument | Type | Details | value | Object | A number (interpreted as milliseconds since 1970-01-01T00:00:00Z), or string such as '1996-01-01' or '1996-001' or '1996-01-01T08:00'. |
timeZone | String, default: null | The time zone (e.g., 'America/Los_Angeles'); defaults to UTC. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["\u003cp\u003eCreates an Earth Engine \u003ccode\u003eDate\u003c/code\u003e object from a number, representing milliseconds since epoch, or a date string.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDate\u003c/code\u003e object can be constructed using a specific time zone, with the default being UTC if not specified.\u003c/p\u003e\n"]]],["The `ee.Algorithms.Date` function creates a Date object. It accepts a `value`, which can be a number representing milliseconds since 1970-01-01T00:00:00Z or a date string (e.g., '1996-01-01'). An optional `timeZone` argument (defaulting to UTC) specifies the time zone for the date, using names like 'America/Los_Angeles'. The function returns a Date object.\n"],null,["# ee.Algorithms.Date\n\nCreates a Date.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------|---------|\n| `ee.Algorithms.Date(value, `*timeZone*`)` | Date |\n\n| Argument | Type | Details |\n|------------|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| `value` | Object | A number (interpreted as milliseconds since 1970-01-01T00:00:00Z), or string such as '1996-01-01' or '1996-001' or '1996-01-01T08:00'. |\n| `timeZone` | String, default: null | The time zone (e.g., 'America/Los_Angeles'); defaults to UTC. |"]]