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...
-
/****** [dbo].[Split] Script ******/ CREATE FUNCTION [dbo].[Split] ( @RowData NVARCHAR(MAX), @Delimeter NVARCHAR(MAX) ) RETURNS @RtnVal...
-
Many developers don't know about how to remove un-used code and block. Visual Studio giving facility to resolve this. The followin...
-
This guide shows how to build a production-ready AI API using ASP.NET Core with: Clean Architecture, streaming responses, database storage,...
No comments:
Post a Comment