Published on: 24 Nov, 2020

How to get the current date in TSQL?

Tumblr Digg Google Plus

If you want to get today's date in TSQL. There is a built-in date function in TSQL to get the current today's date. The built-in function is called GetDate().

See below example code below to get the current date.


SELECT GETDATE() AS CurrentDate

Comments

There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.