title: Get Year from a Parameter with a date function
body: <p>I need to get the year <strong>YYYY</strong> from a parameter <strong>(@PrmEnd2)</strong> with a </p>
  
  <pre><code>default value  =
  DateAdd("d" , -1 , DateAdd("m", -3, DateSerial(Year(Now()), Month(Now()), 1))) 
  </code></pre>
  
  <p>I have tried =<code>Year(Parameters!PrmEnd2.Value)</code> but keep getting <strong>#ERR</strong></p>
  
  <p>Please help. thank you </p>