title: Freemarker IF statement for a date
body: <p>I'm very new to Freemarker so don't really know a huge amount about the language.</p>
  
  <p>I'm trying to write an IF statement to be used within a PDF invoice template.  THe code I already have is the following:</p>
  
  <pre><code>&lt;#if record.billcountry == "ZA"&gt;
  &lt;table class="footer" style="width: 100%;"&gt;
  &lt;tr&gt;
  &lt;td align="right"&gt;&lt;b&gt;&lt;#if record.subsidiary == "DBL"&gt;VAT No: GB xxxxxxxxx&lt;br/&gt;&lt;/#if&gt;VAT No: Applied For.&lt;/b&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;#elseif record.subsidiary == "DBL"&gt;
  &lt;table class="footer" style="width: 100%;"&gt;
  &lt;tr&gt;
  &lt;td align="right"&gt;&lt;b&gt;VAT No: GB xxxxxxxxx&lt;/b&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The above is saying that if the billing country is ZA, and the subsidiary is DBL, enter the VAT Reg number.  If the sub isn't DBL, enter the message VAT No: Applied For.</p>
  
  <p>However I want to change this to include a date, so the logic says that if the billing country is ZA, and the subsidiary is DBL, enter the VAR Reg No.  If the sub isn't DBL, and the date is before 01.04.2017, enter the message, but if the date is 01.04.2017 or after, enter the VAT Reg no. YYYYYYYYY.</p>
  
  <p>Any ideas?</p>