convert date to weekday number tsql code example Example: sql server convert date to weekday SELECT DATENAME( DW , GETDATE() );