"StructuredDate" (interpreter type)

Date in a standard format.

DetailsDetails

Allowed FormsAllowed Forms

  • A full date expressed in one of the following formats:
  • 2010/11/25year/month/day
    1989-march-1year/month name/day
    1789 14 julyyear/day/month name
  • All the separators that DateList accepts are allowed.

Restriction SpecificationsRestriction Specifications

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Interpret dates:

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

Restrict the value to be within a given range:

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

Use a different format:

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

No semantic interpretation of the year is allowed; "10" is interpreted as "10 AD", not "2010":

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

Dates that involve a time are not accepted:

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