smalldatetime (data type)
data type smalldatetime
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
smalldatetime
Work example
Read a legacy column when minute precision and its narrow date range match the existing contract.
Use date or datetime2 for new columns unless the legacy range and minute rounding are deliberate requirements.
Check your work smalldatetime rounds to the nearest minute and does not retain seconds.
Practice SQL
Open in SQL FlowSELECT CAST('2026-04-05T12:30:00' AS smalldatetime) AS minute_time;
Open Microsoft Learn for full syntax, permissions, and details for your version.