DateOverlapsQ
✖
DateOverlapsQ
returns True if the calendar dates date1 and date2 overlap, and False otherwise.
Details

- In DateOverlapsQ[date1,date2], both date1 and date2 should be specified as DateObject expressions of any calendar granularity.
- DateOverlapsQ accepts lists of dates in both arguments, effectively calling Outer on the input lists.
- DateOverlapsQ returns True if there is any intersection in the time period represented by date1 and date2.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Now and Today are overlapping:

https://wolfram.com/xid/0gfs3a0y4ber-cynmew

But Now and Yesterday are not:

https://wolfram.com/xid/0gfs3a0y4ber-le3fj

Test whether a given week overlaps with the year 2022:

https://wolfram.com/xid/0gfs3a0y4ber-bo6ndj

Scope (3)Survey of the scope of standard use cases
Test whether a date overlaps several different dates:

https://wolfram.com/xid/0gfs3a0y4ber-elqge8

Test whether several dates overlap a given date:

https://wolfram.com/xid/0gfs3a0y4ber-gc3h8v

Test for overlaps of several dates against several other dates:

https://wolfram.com/xid/0gfs3a0y4ber-x6n8t

Properties & Relations (3)Properties of the function, and connections to other functions
DateOverlapsQ returns True if any part of the dates are overlapping:

https://wolfram.com/xid/0gfs3a0y4ber-f79xj2

DateWithinQ will return True only if date2 is entirely contained within date1:

https://wolfram.com/xid/0gfs3a0y4ber-km0wk

If two dates overlap, their difference will be zero of the largest calendar granularity:

https://wolfram.com/xid/0gfs3a0y4ber-kg4y0h


https://wolfram.com/xid/0gfs3a0y4ber-bck6al

If two date objects overlap, they cannot be compared:

https://wolfram.com/xid/0gfs3a0y4ber-eiz8l6


https://wolfram.com/xid/0gfs3a0y4ber-hq72b4


Wolfram Research (2017), DateOverlapsQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DateOverlapsQ.html.
Text
Wolfram Research (2017), DateOverlapsQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DateOverlapsQ.html.
Wolfram Research (2017), DateOverlapsQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DateOverlapsQ.html.
CMS
Wolfram Language. 2017. "DateOverlapsQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DateOverlapsQ.html.
Wolfram Language. 2017. "DateOverlapsQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DateOverlapsQ.html.
APA
Wolfram Language. (2017). DateOverlapsQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DateOverlapsQ.html
Wolfram Language. (2017). DateOverlapsQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DateOverlapsQ.html
BibTeX
@misc{reference.wolfram_2025_dateoverlapsq, author="Wolfram Research", title="{DateOverlapsQ}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/DateOverlapsQ.html}", note=[Accessed: 06-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_dateoverlapsq, organization={Wolfram Research}, title={DateOverlapsQ}, year={2017}, url={https://reference.wolfram.com/language/ref/DateOverlapsQ.html}, note=[Accessed: 06-April-2025
]}