title: converting string to date format in jsp
body: <p>I'm trying to convert a string object that is formatted in a date format (i.e. 2013-12-14 10:00:00.0) and is passed to the <code>jsp</code> as such, into another date format (i.e. 12/14/13 10:00:00 AM) on the jsp. I've tried the following lines of code trying to parse the string "date" (which happens to be in a certain date format) to an actual date format:</p>
  
  <pre><code>&lt;fmt:parseDate value="${row.date}" type="date" pattern="yyyy-MM-dd hh:mm:ss.S" var="formatedDate"/&gt;   
  &lt;td class="dataField"&gt;&lt;fmt:formatDate value="${formatedDate}"  type="date" pattern="MM/dd/yy hh:mm:ss a"/&gt;&lt;/td&gt;
  </code></pre>
  
  <p>But I'm getting the following exception in my console:</p>
  
  <blockquote>
    <p>16:14:01,265 ERROR [[springapp]] Servlet.service() for servlet
    springapp threw exception java.text.ParseException: Unparseable date:
    "2013-12-14 10:00:00.0"
            at java.text.DateFormat.parse(DateFormat.java:337)</p>
  </blockquote>
  
  <p>Does anyone have a better idea why this is not working?</p>