Extract Month/Year from Date in SSRS 2008 -
I am using the SQL Server SSRS 2008 version and I need to remove the date fields, months and years values I for example, 2013-01-11 21: 11: 29.340, I need to report "January 2013 January" ???
In the Design view, to display where I want the information in the cell, where I place an option from the "Expression" pull-down menu, enter
= DATENAME (MONTH) , DesiredDate) & amp; DATENAME (YEAR, DesiredDate) and received an error message.
BTW comes from SQL code in a "desired date" query designer.
To add values between the + values in SQL Server: DATENAME (month, desired date) + "DATENAME" (year, desired date) You could probably & amp; '& Amp; which will add whitespace between values: DATENAME (MONTH, DesiredDate) & amp; '& Amp; Based on your comment, edit DATE_1 (YEAR, DesiredDate) Edit # 1, you can use the following in the expression window:
= MonthName (month) (desired! Value of desired!) & Amp; "" & Amp; Note: I just tested it in SSRS 2008 and you returned the result you want.
Comments
Post a Comment