DateObjectQ

DateObjectQ[expr]

gives True if expr is a DateObject with valid arguments, and False otherwise.

Details

  • DateObjectQ[expr] returns False unless expr is a DateObject expression with valid arguments (i.e. has a recognized date specification).

Examples

open allclose all

Basic Examples  (1)

DateObjectQ tests whether an expression is a DateObject with valid arguments:

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

Applications  (1)

See Also

DateObject  DateOverlapsQ  DateWithinQ  TimeObjectQ  TimeObject

Introduced in 2014
(10.0)