todatetime()

Converts input to datetime scalar.

todatetime("2015-12-24") == datetime(2015-12-24)

Syntax

todatetime(Expr)

Arguments

  • Expr: Expression that will be converted to datetime.

Returns

If the conversion is successful, the result will be a datetime value. Else, the result will be null.

Note

Prefer using datetime() when possible.