Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Format a Date to "DD/MM", e.g.3/11 instead of 3/11/2014

$
0
0
Hello,The column has dates, a letter "Y", and some blank fields. I tried an expression as below and it shows an error and previewed.[code="sql"]=iif(isnothing(Fields!BB_Delivers_BOM.Value), "N/A", iif(Fields!BB_Delivers_BOM.Value = "Y", "Y", CStr(Month(Fields!BB_Delivers_BOM.Value)) & "/" & Cstr(Day(Fields!BB_Delivers_BOM.Value)) ) )[/code]This does convert the full date to day/month but for other criteria it shows [quote]#Error[/quote]. How can I solve this? Any tip(s)? I appreciate your help in advance. Thank you!

Viewing all articles
Browse latest Browse all 2791

Trending Articles