SQL DATEFIRST

SQL DATEFIRST Example

The SQL DATEFIRST Set Function will set the first Day of the week from 1 through 7. If your default language is Us English, then by default 7 (Sunday) is set as the first Day. The basic syntax of the DATEFIRST in SQL Server is SET DATEFIRST { number (or number_variable) } — For example, … Read more