Answers for "get the day of week from date sql"

SQL
1

how to get weekday from old date in sql

select format(columnName, 'dddd') as WeekDay from tableName; -- SQL Server 17
Posted by: Guest on January-14-2021
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

Code answers related to "get the day of week from date sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language