Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

"DateTime" (interpreter type)

Date with time in any standard format or in natural language.

DetailsDetails

  • "DateTime" can be used in Interpreter and related constructs, including deployed smart form fields.
  • Use of "DateTime" requires connectivity to the Wolfram Cloud.

Allowed FormsAllowed Forms

  • All the date specifications allowed by "Date" combined with the time specifications allowed by "Time":
  • 1988/11/23 9:30:34date time
    15:45 June 30th, 1899 ADtime date
    2014-05-20T17:42:55ISO formats
    today @ 1 o'clocknatural language

Restriction SpecificationsRestriction Specifications

InterpretationInterpretation

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Interpret dates with time:

In[1]:=
Click for copyable input
Out[1]=

Interpret dates with time in natural language:

In[1]:=
Click for copyable input
Out[1]=

Restrict the value to be within a given range:

In[1]:=
Click for copyable input
Out[1]=

Set a resolution of minutes:

In[1]:=
Click for copyable input
Out[1]=

Pure dates or pure times are not accepted:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=