OpenBI Docs Buy

ISDATETIME

Whether a value is a date, or a date and time.

Group: Information. Compatible with DAX.

Syntax

ISDATETIME ( <value> )
ParameterTypeDescription
valueValueWhat is tested: a constant, a column in a row context, a measure or any expression.

Returns

Boolean. TRUE when the value is a date or a date and time, FALSE otherwise.

Remarks

  • A time from TIME is a date and time too (on 30 December 1899): TRUE.
  • A date's serial number, such as 46328, is a number, not a date. Text that reads like a date is text until DATEVALUE turns it into one.
  • ISNUMBER is TRUE for dates as well; ISDATETIME is the test that tells them apart from numbers.

Examples

Dates and look-alikes

EVALUATE
ROW (
    "DATE", ISDATETIME ( DATE ( 2026, 11, 2 ) ),
    "DATE + TIME", ISDATETIME ( DATE ( 2026, 11, 2 ) + TIME ( 14, 30, 0 ) ),
    "TIME", ISDATETIME ( TIME ( 8, 0, 0 ) ),
    "46328", ISDATETIME ( 46328 ),
    "Text", ISDATETIME ( "2026-11-02" ),
    "Blank", ISDATETIME ( BLANK () )
)
DATEDATE + TIMETIME46328TextBlank
TRUETRUETRUEFALSEFALSEFALSE

A column of the model

EVALUATE
ROW (
    "Maturity is a date", ISDATETIME ( MAX ( Holdings[Maturity] ) ),
    "and a number", ISNUMBER ( MAX ( Holdings[Maturity] ) ),
    "but not numeric", ISNUMERIC ( MAX ( Holdings[Maturity] ) )
)
Maturity is a dateand a numberbut not numeric
TRUETRUEFALSE

ISNUMBER, ISNUMERIC, DATEVALUE, DATE, ISSTRING.

Last updated · OpenBI Studio 0.3.74