title: Display date and time in JSF without milliseconds
body: <p>I'm getting datetime from my PSQL database in way:</p>
  
  <pre><code>2013-06-17 16:07:31.885
  </code></pre>
  
  <p>I'm trying to display it without milliseconds at the end of it, I display them in a way:</p>
  
  <pre><code>   &lt;h:outputText value="#{myobj.mydate}"&gt;
     &lt;f:convertDateTime pattern="yyyy-MM-dd HH:mm"/&gt;
     &lt;/h:outputText&gt;
  </code></pre>
  
  <p>I've tried some convertDateTime combinations, but they didn't work out for me. Can you suggest me some solution except brute force string split?</p>