"ComputedDate" (Interpreter Type)
A date derived by computation.
Details
- "ComputedDate" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "ComputedDate" requires connectivity to the Wolfram Cloud.
Allowed Forms
- Any natural-language date supported by "Date", or a computation yielding one.
Restriction Specifications
-
Restricted["ComputedDate",{{choices1,…}}] one among choices Restricted["ComputedDate",max] a date before max Restricted["ComputedDate",{min,max}] a date between min and max Restricted["ComputedDate",{min,max,unit}] a date between min and max, with resolution unit
Interpretation
- "ComputedDate" yields a DateObject.
Examples
Basic Examples (3)
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"]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"]See Also
Interpreter SemanticImport Restricted Failure DateObject
Interpreter Types: Date StructuredDate Time DateTime UnixTime ExcelDate DayOfWeek StructuredTime ComputedTime StructuredDateTime ComputedDateTime
Related Guides
History
Introduced in 2014 (10.0)