DECLARE @StartDate DATETIME
DECLARE @EndDate DATETIME
SET @StartDate = '2008/10/01'
SET @EndDate = '2008/10/31'
SELECT
(DATEDIFF(dd, @StartDate, @EndDate) + 1)
-(DATEDIFF(wk, @StartDate, @EndDate) * 2)
-(CASE WHEN DATENAME(dw, @StartDate) = 'Sunday' THEN 1 ELSE 0 END)
-(CASE WHEN DATENAME(dw, @EndDate) = 'Saturday' THEN 1 ELSE 0 END)
Here you will find about .net technology. also can get example about MVC.net and jquery.
Thursday, March 21, 2013
Count Day In Sql Server
Subscribe to:
Post Comments (Atom)
Complete Authentication System in ASP.NET Core using JWT
JWT (JSON Web Token) authentication is widely used for securing APIs in modern applications. In this article, we will build a complete authe...
-
<html> <body> <table> <tr><td>Text to Save:</td></tr> <tr> <td colspan="3...
-
Many developers don't know about how to remove un-used code and block. Visual Studio giving facility to resolve this. The followin...
-
Selector Example Selects * $("*") All elements # id $("#lastname") The element with id="lastname" . class...
No comments:
Post a Comment