"StructuredDateTime" (Interpreter Type)
Date with time in a standard format.
Details
- "StructuredDateTime" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "StructuredDateTime" does not require connectivity to the Wolfram Cloud.
Allowed Forms
- A date in a format allowed by "StructuredDate", followed by a time specification in a format allowed by "StructuredTime".
Restriction Specifications
-
Restricted["StructuredDateTime",{{choices1,…}}] one among choices Restricted["StructuredDateTime",max] a date with time before max Restricted["StructuredDateTime",{min,max}] a date with time between min and max Restricted["StructuredDateTime",{min,max,unit}] a date with time between min and max, with resolution unit
Interpretation
- "StructuredDateTime" yields a DateObject with a TimeObject as its second argument.
Examples
Basic Examples (2)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0vli7v98lu0wm48ts7mhkazb2-rae2nv
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0vli7v98lu0wm48ts7mhkazb2-p83p1r
Out[2]=2

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

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

In[1]:=1

✖
https://wolfram.com/xid/0vli7v98lu0wm48ts7mhkazb2-e4a882
Out[1]=1

Pure dates or pure times are not accepted:
In[1]:=1

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

In[2]:=2

✖
https://wolfram.com/xid/0vli7v98lu0wm48ts7mhkazb2-l2j0xd
Out[2]=2

In[1]:=1

✖
https://wolfram.com/xid/0vli7v98lu0wm48ts7mhkazb2-vnnj8k
Out[1]=1
