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)
📱Build WhatsApp Bot using .NET + OpenAI
In this article, you will learn how to build a real-world WhatsApp chatbot using ASP.NET Core and OpenAI. This bot can automatically repl...
-
<html> <body> <table> <tr><td>Text to Save:</td></tr> <tr> <td colspan="3...
-
The date format js is give in the below section, please go below and see the date.format.js and copy and use it. Table of content for J...
-
Many developers don't know about how to remove un-used code and block. Visual Studio giving facility to resolve this. The followin...
No comments:
Post a Comment