Skip to main content Skip to complementary content

DATE

Casts a string value to a date.

Syntax

DATE(value)

Arguments

Name Type Description Default Value
value string

Returns

Returns a date value.


Examples

value Output
"2022-02-01" date "2022-02-01"
timestamp "2022-02-01 00:00:00" date "2022-02-01"
timestamp "2022-01-01 00:30:00" date "2022-01-01"

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 – please let us know!