OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret dates:

Interpreter["ComputedDate"]["Nov. 3rd, 1878"]

Interpreter["ComputedDate"]["today"]

Interpret dates derived by computation:

Interpreter["ComputedDate"]["Einstein's birth date"]

Interpreter["ComputedDate"]["in 3 days"]

Interpreter["ComputedDate"]["next monday"]

Restrict the value to be within a given range:

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

Set a resolution:

Interpreter[Restricted["ComputedDate", {DateObject[{2014}],DateObject[{2017}],"Year"}]]["this year"]

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

Dates that involve a time are not accepted:

Interpreter["ComputedDate"]["2/4/1976 + 35 hours"]

({{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])}, {Related Interpreter Types:  (RefLink[Date, paclet:ref/interpreter/Date])  ▪  (RefLink[StructuredDate, paclet:ref/interpreter/StructuredDate])  ▪  (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])}})}})