Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex DataLens
    • Overview
    • Formula syntax
    • Neuroanalyst for creating calculated fields
      • All Functions
        • Overview
        • BOOL
        • DATE
        • DATETIME
        • DATETIME_PARSE
        • DATE_PARSE
        • DB_CAST
        • FLOAT
        • GEOPOINT
        • GEOPOLYGON
        • INT
        • STR
        • TREE
      • Function Availability
    • Parameters
  • DataLens Gallery
  • Audit Trails events
  1. Calculated fields
  2. Function reference
  3. Type conversion functions
  4. DATETIME_PARSE

DATETIME_PARSE

Written by
Yandex Cloud
Improved by
amatol
Updated at November 6, 2024
View as Markdown

SyntaxSyntax

DATETIME_PARSE( value )

DescriptionDescription

Converts the value expression to date and time format. Unlike DATETIME, it supports multiple formats. The expression is processed on the ClickHouse® source side. For more information on the supported formats, see the relevant ClickHouse® documentation.

Argument types:

  • value — String

Return type: Datetime

ExamplesExamples

DATETIME_PARSE("2019-01-02 03:04:05") = #2019-01-02 03:04:05#
DATETIME_PARSE("20190102030405") = #2019-01-02 03:04:05#
DATETIME_PARSE("20190102 030405") = #2019-01-02 03:04:05#
DATETIME_PARSE("2019.01.02 03:04:05") = #2019-01-02 03:04:05#
DATETIME_PARSE("02/01/2019 03:04:05") = #2019-01-02 03:04:05#
DATETIME_PARSE("2019-01-02 03:04") = #2019-01-02 03:04:00#
DATETIME_PARSE("2019-01-02 030405") = #2019-01-02 03:04:05#
DATETIME_PARSE("2019 Jan 02 03:04:05") = #2019-01-02 03:04:05#

Data source supportData source support

ClickHouse 21.8, Files, Google Sheets, Yandex Documents.

Was the article helpful?

Previous
DATETIME
Next
DATE_PARSE
© 2026 Direct Cursus Technology L.L.C.