title: Convert java.util.Date value to string using EL
body: <p>How to compare <code>java.util.Date</code> value with <code>String</code> using JSTL and EL?</p>
  
  <p>This is the model:</p>
  
  <pre><code>private Date myDate; // Wed Jan 01 00:00:00 CET 1001
  </code></pre>
  
  <p>This is the view:</p>
  
  <pre><code>&lt;c:if test="#{bean.myDate eq 'Wed Jan 01 00:00:00 CET 1001'}"&gt;
      &lt;h:outputText value="#{bean.myDate}"&gt;
          &lt;f:convertDateTime pattern="EEEE dd MMM yyyy @ HH:mm:ss" /&gt;
      &lt;/h:outputText&gt;
  &lt;/c:if&gt;
  </code></pre>
  
  <p>However the condition always evaluates false. How is how can I solve it?</p>