dot net tips, DotNet tips, .Net Tips,Dot Net tips and tricks,Dot Net Solutions, OOPS Concept in C#,SQL Server, LinQ, Ajax, Java script, JQuery, Server Error details, daily .net tips and tricks , DotNet Interview Questions.
DATEPART VS DATENAME
SELECT DATEPART(MONTH,GETDATE()) AS [MONTH]
--Result
8 SELECT DATENAME(month,getdate()) AS [MONTH]
--Result
Auguest SELECT DATEPART(WEEKDAY,GETDATE()) AS [DAY]
--Result
6 SELECT DATENAME(WEEKDAY,getdate()) AS [DAY]
--Result
Friday