SET DATEFIRSTDATEPART functionT-SQL Datetime functionsThe first day of the weekT-SQL Datetime functions