how to create table and use get date time in sql server code example Example: sql server date field syntax DATE - format YYYY-MM-DD