get current date from datetime in sql code example Example: sql display today's date SELECT getdate()