ee.DateRange.intersection

Returns a DateRange that contains all points in the intersection of this DateRange and another.

UsageReturns
DateRange.intersection(other)DateRange
ArgumentTypeDetails
this: dateRangeDateRange

otherDateRange

Examples

Code Editor (JavaScript)

// A series of ee.DateRange objects.
var dateRange1 = ee.DateRange('2017-06-24', '2017-07-24');
var dateRange2 = ee.DateRange('2017-07-01', '2018-08-24');

// Determine the intersection of two ee.DateRange objects.
print('Intersection of dateRange1 and dateRange2',
      dateRange1.intersection(dateRange2));