title: grails change Date format in gsp view
body: <p>When I try to use date format tag in gsp view to change the format of my date but it doesn't work.</p>
  
  <p>This is my code:</p>
  
  <pre><code>class MyDate {  
      Date date
  }
  </code></pre>
  
  <p>MyDateController:</p>
  
  <pre><code>....
  def unixSeconds = params["date"].replaceAll("\"", "") as long  //params["date"]="1386157660"
  Date date = new Date(unixSeconds*1000L)
  myDateInstance = new MyDate(date:date)
  ....
  </code></pre>
  
  <p>gsp View: </p>
  
  <pre><code>${myDateInstance.date.format('yyyy-MM-dd HH:mm')}
  </code></pre>
  
  <p>The format that I have is 2013-12-04 12:47:40.0 instead of 2013-12-04 12:47</p>