GitHubContribute in GitHub: Edit online

todatetime()

Converts input to datetime scalar.

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.

Prefer using datetime() when possible.

Example

print todatetime("2023-04-24") 

Returns

print_0
1682294400000