SQL Command to Retrieve Date

Question:
What is the SQL command for retrieving the current date?

Answer:
The GETDATE() function returns the current date and time. Write it like this:

SELECT GETDATE() AS CurrentDateCurrentDate                 --------------------------- 2000-07-25 16:54:25.293

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: