Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi Guys,Here is my command in SSRS 2008 to get the Month Name and Year.THe result of my command should be like this, if current date is > 26 then the month name should display "Jan-2014" Else "Dec-2013'.Why I am getting an error with this command in SSRS? I have problem with the first condition. thanks.
=Format(DateAdd(DateInterval.Day,DateDiff(DateInterval.Day,CDATE("01/01/1900"),Today()) + 5, CDATE("01/01/1900")),"MMM-yyyy")------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs
Villanuev
Constraint Violating Yak Guru
478 Posts
Posted - 2013-12-03 : 19:31:12
Thank you very much Visakh.
visakh16
Very Important crosS Applying yaK Herder
52326 Posts
Posted - 2013-12-04 : 00:16:01
welcome------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs