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:

Applications  (1)

DateObjectQ can be used in pattern tests for functions:

Introduced in 2014
 (10.0)