date (data type)
data type date
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
date
Work example
Store a calendar day when hours and minutes have no meaning.
Filter a day with a half-open range when the source column is a timestamp.
Check your work date has no time or time-zone component.
Practice SQL
Open in SQL FlowSELECT CAST('2026-04-05' AS date) AS event_day;
Open Microsoft Learn for full syntax, permissions, and details for your version.