Answers for "sql server get week from date"

SQL
1

sql server week number

datepart(wk, DateToParse)
Posted by: Guest on March-18-2020
0

sql server get week dates from week number

SELECT  
	DATEADD(DAY, 2 - DATEPART(WEEKDAY, GETDATE()), CAST(GETDATE() AS DATE)) [Week_Start_Date],  
	DATEADD(DAY, 8 - DATEPART(WEEKDAY, GETDATE()), CAST(GETDATE() AS DATE)) [Week_End_Date]
Posted by: Guest on August-12-2021
0

get week day name sql server

select datename(dw,getdate()) --Thursday
select datepart(dw,getdate()) --2
Posted by: Guest on September-29-2021

Code answers related to "sql server get week from date"

Code answers related to "SQL"

Browse Popular Code Answers by Language