Skip to main content
Scalar function
NULL input returns NULL; unsupported conversion and invalid text follow CAST/ANSI behavior.

Syntax

Scalar

Arguments

Returns

  • Type: DATE
  • NULL behavior: NULL input returns NULL; unsupported conversion and invalid text follow CAST/ANSI behavior.

Properties

Usage notes

  • DATE(value) has the same effect as CAST(value AS DATE).
  • Deterministic: The same inputs and settings produce the same result.

Examples

Typical behavior

Remove the time of day

Last modified on October 15, 2026