OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Interpret dates:

Interpreter["Date"]["04/21/1982"]

Interpreter["Date"]["20100410"]

Interpret dates in natural language:

Interpreter["Date"]["yesterday"]

Restrict the value to be within a given range:

Interpreter[Restricted["Date", {Today,Today+Quantity[1,"Week"]}]]["tomorrow"]

Discover dates in text:

SemanticImportString["Apr. 2, 2010; Aug. 3, 1975; Nov. 14, 1979","Date","Columns"]

Interpret dates in a number of different formats and calendars:

Interpreter["Date"]["april 2, 2010"]

Interpreter["Date"]["2013/11/12"]

Interpreter["Date"]["year 2012"]

Interpreter["Date"]["ramadan 2001"]

Set a resolution:

Interpreter[Restricted["Date", {DateObject[{2014}],DateObject[{2017}],"Year"}]]["2015"]

Interpreter[Restricted["Date", {DateObject[{2014}],DateObject[{2017}],"Year"}]]["March 17, 2015"]

Dates that involve a time are not accepted:

Interpreter["Date"]["march 9, 2013 9pm"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[SemanticImport, paclet:ref/SemanticImport])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[DateObject, paclet:ref/DateObject])  ▪  (RefLink[TimeObject, paclet:ref/TimeObject])}, {Related Interpreter Types:  (RefLink[StructuredDate, paclet:ref/interpreter/StructuredDate])  ▪  (RefLink[ComputedDate, paclet:ref/interpreter/ComputedDate])  ▪  (RefLink[Time, paclet:ref/interpreter/Time])  ▪  (RefLink[DateTime, paclet:ref/interpreter/DateTime])  ▪  (RefLink[UnixTime, paclet:ref/interpreter/UnixTime])  ▪  (RefLink[ExcelDate, paclet:ref/interpreter/ExcelDate])  ▪  (RefLink[DayOfWeek, paclet:ref/interpreter/DayOfWeek])  ▪  (RefLink[StructuredTime, paclet:ref/interpreter/StructuredTime])  ▪  (RefLink[ComputedTime, paclet:ref/interpreter/ComputedTime])  ▪  (RefLink[StructuredDateTime, paclet:ref/interpreter/StructuredDateTime])  ▪  (RefLink[ComputedDateTime, paclet:ref/interpreter/ComputedDateTime])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})