"Date" (Interpreter Type)
Date in any standard format or in natural language.
Details
- "Date" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "Date" requires connectivity to the Wolfram Cloud.
Allowed Forms
-
2010/21/04 year/day/month 21/04/2010 day/month/year 04/21/2010 month/day/year 2010/04/21 year/month/day Sep 14, 1756 comma separated 1989-11-13 hyphen separated today dates in natural language jan 1st dates including natural language 1989 just a year march just a month apr 2011 a specific month 9 shaban 1435 an Islamic date 26 Kislev 5775 a Jewish date
Restriction Specifications
-
Restricted["Date",{{choices1,…}}] one among choices Restricted["Date",max] a date before max Restricted["Date",{min,max}] a date between min and max Restricted["Date",{min,max,unit}] a date between min and max, with resolution unit
Interpretation
- "Date" yields a DateObject.
Examples
Basic Examples (4)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-pdak1f
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-m76d08
Out[2]=2

Interpret dates in natural language:
In[1]:=1

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-duehce
Out[1]=1

Restrict the value to be within a given range:
In[1]:=1

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-qd9f7x
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-l3rdu9
Out[1]=1

Interpret dates in a number of different formats and calendars:
In[1]:=1

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-t6idv8
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-wiuq2o
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-ocjqvx
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-6fplt8
Out[4]=4

In[1]:=1

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-t1n6r1
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-monwwq
Out[2]=2

Dates that involve a time are not accepted:
In[1]:=1

✖
https://wolfram.com/xid/0bmv49xdn3hmibdn6yc-uk5xhg
Out[1]=1
