SQL Flow Field Guide

smalldatetime (data type)

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

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 Flow
SELECT CAST('2026-04-05T12:30:00' AS smalldatetime) AS minute_time;

Open Microsoft Learn for full syntax, permissions, and details for your version.