Skip to main content Skip to complementary content


Converts a value to a datetime.


  1. String or date to convert.
  2. Optional: If the first argument is a date, you can specify a time as a string or time data type. Otherwise the local time 00:00 is used.


Expression Result
toDateTime("2021-04-21") 2021-04-21T00:00Z

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!