Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

Get day of week in SQL Server 2005/2008

Asked by Johnsondavid Sep 11, 2025 971 views 2 answers
Share

About this question

How can you get the day of the week in SQL Server 2005/2008, and what functions are available to achieve this? Learn how to retrieve weekdays using built-in SQL functions like DATEPART() and DATENAME().

Your answer

2 Answers

Ermakschrantz Latest answer

Answered on Mar 18, 2026

Please note that DATEPART(WEEKDAY, ...) depends on SET DATEFIRST, so it may produce different results.

Edit by Escape Tsunami for Brainrots a day ago

Was this helpful?

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.