Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
The DateRange.isEmpty() method returns true if the DateRange object represents an empty time interval (i.e., the start date is equal to or later than the end date).
It can be applied to any ee.DateRange object to check its validity.
If the start date is earlier than the end date, the DateRange is considered valid and the method returns false.
When the start and end dates are the same, the DateRange.isEmpty() method will also return true, indicating an empty or instantaneous range.
Returns true if this DateRange contains no dates (i.e. start >= end).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[],["The `isEmpty()` method checks if a `DateRange` contains no dates. It returns a boolean value: `true` if the start date is greater than or equal to the end date, `false` otherwise. It operates on a `DateRange` object. Examples demonstrate creating `DateRange` objects and using `isEmpty()` to check their status, outputting the boolean result in both Javascript and python.\n"]]