GETDATE
nondeterministic time source
What changes
- Input
- system clock or time zone of the server
- Output or change
- current date/time value
- Return type
- datetime
Syntax at a glance
GETDATE()
Work example
Capture the SQL Server host's current local date and time for a display or audit field.
For stored event timestamps, prefer an explicit UTC contract and a higher-precision UTC function.
Check your work GETDATE is nondeterministic and returns datetime without a time-zone offset.
Practice SQL
Open in SQL FlowSELECT GETDATE() AS server_local_time;
Open Microsoft Learn for full syntax, permissions, and details for your version.