﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server Newbies  / Current date data problem in SSRS / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 18 Jun 2013 00:41:09 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Current date data problem in SSRS</title><link>http://www.sqlservercentral.com/Forums/Topic1425290-1292-1.aspx</link><description>Without seeing the code we can't give you the answers you want.  It is a black box and all we can do is shoot in the dark.</description><pubDate>Fri, 01 Mar 2013 06:51:35 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: Current date data problem in SSRS</title><link>http://www.sqlservercentral.com/Forums/Topic1425290-1292-1.aspx</link><description>I tried DATEADD(mm,0,Getdate()) also and the current month but didn't get the previous month. Need previous months and current together.</description><pubDate>Thu, 28 Feb 2013 22:46:11 GMT</pubDate><dc:creator>Grass</dc:creator></item><item><title>RE: Current date data problem in SSRS</title><link>http://www.sqlservercentral.com/Forums/Topic1425290-1292-1.aspx</link><description>I'll take a shot in the dark. You're setting the current date to last month. Try setting it to this month. DATEADD(mm,0,getdate())</description><pubDate>Thu, 28 Feb 2013 15:30:14 GMT</pubDate><dc:creator>Erin Ramsay</dc:creator></item><item><title>RE: Current date data problem in SSRS</title><link>http://www.sqlservercentral.com/Forums/Topic1425290-1292-1.aspx</link><description>Can't see from here what you see there.  There really isn't enough information to help you unless all you want are shots in the dark.</description><pubDate>Thu, 28 Feb 2013 15:23:56 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: Current date data problem in SSRS</title><link>http://www.sqlservercentral.com/Forums/Topic1425290-1292-1.aspx</link><description>@CurrentDate in the procedure is as a parameter and Set to NULL. So in the SSRS report the user will not enter the date. Only input the other information and the report should pull the data for past months including the current month as well. So far if I use the logic mentioned above works to return up to Jan month. Thanks</description><pubDate>Thu, 28 Feb 2013 15:21:46 GMT</pubDate><dc:creator>Grass</dc:creator></item><item><title>RE: Current date data problem in SSRS</title><link>http://www.sqlservercentral.com/Forums/Topic1425290-1292-1.aspx</link><description>[quote][b]Grass (2/28/2013)[/b][hr]Hi all,Trying to get data by month for current month and previous month in ssrs but couldn't able to get it. I was using this statement in procedure:IF @CurrentDate IS NULL BEGIN    SET @CurrentDate = DATEADD(MM, -1, GETDATE())ENDThis gives me records up to Jan and not for Feb month. I want also Feb month in there. How should I write this. Hope this makes sense.Thanks[/quote]How are you using the variable @CurrentDate?  It would help to see the actual query involved.</description><pubDate>Thu, 28 Feb 2013 14:54:51 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>Current date data problem in SSRS</title><link>http://www.sqlservercentral.com/Forums/Topic1425290-1292-1.aspx</link><description>Hi all,Trying to get data by month for current month and previous month in ssrs but couldn't able to get it. I was using this statement in procedure:IF @CurrentDate IS NULL BEGIN    SET @CurrentDate = DATEADD(MM, -1, GETDATE())ENDThis gives me records up to Jan and not for Feb month. I want also Feb month in there. How should I write this. Hope this makes sense.Thanks</description><pubDate>Thu, 28 Feb 2013 14:52:30 GMT</pubDate><dc:creator>Grass</dc:creator></item></channel></rss>