Tag: date

Microsoft SQL Server

MS SQL: Get the Day of Week in Transact-SQL

The day of week for a given date can in Microsoft SQL server be calculated based on the @@datefirst system variable and the datepart function in Transact-SQL. The value returned from datepart is not constant but depends on the first day of week specified by the @@datefirstvariable. In modern programming languages like C# we will get a constant value for each […]

Back To Top


Subscribe to our newsletter