how to get data in sql server according to date code example Example: sql server date field syntax DATE - format YYYY-MM-DD