DatePattern
✖
DatePattern
represents the characters of a date with elements of type "ei" in StringExpression.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Compare a string to a list of date elements:

https://wolfram.com/xid/0i1o1d11e-jfu30b

Compare to a list of time elements:

https://wolfram.com/xid/0i1o1d11e-ns7zks

Compare to a pattern with all separators explicitly given:

https://wolfram.com/xid/0i1o1d11e-ex6nyd

Scope (2)Survey of the scope of standard use cases
Date elements do not match out-of-range values:

https://wolfram.com/xid/0i1o1d11e-oasitt

Test a string allowing only "/" characters as separators:

https://wolfram.com/xid/0i1o1d11e-hzt0dd

Test the same string allowing only colon separators:

https://wolfram.com/xid/0i1o1d11e-m3z0cq

Applications (1)Sample problems that can be solved with this function
Properties & Relations (1)Properties of the function, and connections to other functions
DateString gives results that match a date pattern:

https://wolfram.com/xid/0i1o1d11e-hmtb46


https://wolfram.com/xid/0i1o1d11e-mepep9

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