DatePattern

DatePattern[{"e1", "e2", ...}]
represents the characters of a date with elements of type in StringExpression.

DatePattern[{"e1", "e2", ...}, sep]
allows separators that match the string expression sep.

DetailsDetails

  • Possible element types are: , , , , , , , , , .
  • If no explicit separator is specified, the must be separated by , , , or characters.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Compare a string to a list of date elements:

In[1]:=
Click for copyable input
Out[1]=

Compare to a list of time elements:

In[1]:=
Click for copyable input
Out[1]=

Compare to a pattern with all separators explicitly given:

In[1]:=
Click for copyable input
Out[1]=
New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »