In the following Switch statment, I have hard-coded the date 12/31/2010; however what I really need to do is have 0000 = 12/31/CurrentYear. Can someone please help me with the syntax.
Thanks,
=Switch
( Fields!Combo_3.Value = 0001,DateAdd("D",730,Fields!Birthdate.Value),
Fields!Combo_3.Value = 9999,"N/A",
Fields!Combo_3.Value = 0000,CStr("12/31/2010"),
Fields!Combo_3.Value = 0002,"Past Due",
Fields!Combo_3.Value,Format( Mid( Fields!Combo_3.Value ,5,2 ) & "/" &
Right( Fields!Combo_3.Value , 2 ) & "/" &
Left( Fields!Combo_3.Value , 4 ) )
)
year(getdate())
or
Select datepart(year,getdate())