<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: SQL Puzzle: SQL Advance Query &#8211; Find number of days of the Month of any date	</title>
	<atom:link href="https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-find-number-of-days-of-the-month-of-any-date/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-find-number-of-days-of-the-month-of-any-date/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Wed, 25 Dec 2019 21:49:35 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: serg		</title>
		<link>https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-find-number-of-days-of-the-month-of-any-date/#comment-7974</link>

		<dc:creator><![CDATA[serg]]></dc:creator>
		<pubDate>Wed, 25 Dec 2019 21:49:35 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6079#comment-7974</guid>

					<description><![CDATA[declare @d as date
set @d=&#039;2017-8-08&#039;

select day(EOMONTH(@d))]]></description>
			<content:encoded><![CDATA[<p>declare @d as date<br />
set @d=&#8217;2017-8-08&#8242;</p>
<p>select day(EOMONTH(@d))</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ram		</title>
		<link>https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-find-number-of-days-of-the-month-of-any-date/#comment-6594</link>

		<dc:creator><![CDATA[Ram]]></dc:creator>
		<pubDate>Fri, 17 Aug 2018 17:47:43 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6079#comment-6594</guid>

					<description><![CDATA[DECLARE @InputDate DateTime = &#039;2018-06-17&#039;
DECLARE @FirstDate DateTime
select Day(@InPutDate)
Set @FirstDate = @InputDate-Day(@InPutDate)
select DATEDIFF(Day,@FirstDate,EOMonth(@InputDate))]]></description>
			<content:encoded><![CDATA[<p>DECLARE @InputDate DateTime = &#8216;2018-06-17&#8217;<br />
DECLARE @FirstDate DateTime<br />
select Day(@InPutDate)<br />
Set @FirstDate = @InputDate-Day(@InPutDate)<br />
select DATEDIFF(Day,@FirstDate,EOMonth(@InputDate))</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: OM SHAKYA		</title>
		<link>https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-find-number-of-days-of-the-month-of-any-date/#comment-6017</link>

		<dc:creator><![CDATA[OM SHAKYA]]></dc:creator>
		<pubDate>Thu, 16 Nov 2017 03:20:11 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6079#comment-6017</guid>

					<description><![CDATA[DECLARE @InputDate DATE = &#039;2020-02-01&#039;
	        ,@FirstDate DATE
                ,@LastDate DATE

SELECT @FirstDate = EOMONTH(@InputDate)
SELECT @LastDate = DATEADD(mm, DATEDIFF(mm, 0, @InputDate), 0)
SELECT DATEDIFF(DAY, @LastDate, @FirstDate) + 1 AS NoOfDaysInMonth]]></description>
			<content:encoded><![CDATA[<p>DECLARE @InputDate DATE = &#8216;2020-02-01&#8217;<br />
	        ,@FirstDate DATE<br />
                ,@LastDate DATE</p>
<p>SELECT @FirstDate = EOMONTH(@InputDate)<br />
SELECT @LastDate = DATEADD(mm, DATEDIFF(mm, 0, @InputDate), 0)<br />
SELECT DATEDIFF(DAY, @LastDate, @FirstDate) + 1 AS NoOfDaysInMonth</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dinesh.IS		</title>
		<link>https://www.dbrnd.com/2017/10/sql-puzzle-sql-advance-query-find-number-of-days-of-the-month-of-any-date/#comment-5926</link>

		<dc:creator><![CDATA[Dinesh.IS]]></dc:creator>
		<pubDate>Fri, 13 Oct 2017 09:59:30 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6079#comment-5926</guid>

					<description><![CDATA[DECLARE @InputDate DateTime = &#039;2017-5-1&#039;
Select DateDiff(Day,@InputDate-Day(@InPutDate),DateAdd(Month,1,@InPutDate)-Day(@InputDate)) As NumberOfDays]]></description>
			<content:encoded><![CDATA[<p>DECLARE @InputDate DateTime = &#8216;2017-5-1&#8217;<br />
Select DateDiff(Day,@InputDate-Day(@InPutDate),DateAdd(Month,1,@InPutDate)-Day(@InputDate)) As NumberOfDays</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
