title: Timestamp comes with .0 at the end
body: <p>I'm trying to put in some time stamps in a AnnotatedTimeLine (Google Chart), and its req. to be in the Datetime format. 
  When I reformat (to Timestamp format) the string that I receive from the class, it gives me this:</p>
  
  <blockquote>
    <p>2013-06-28 10:08:35.0</p>
  </blockquote>
  
  <p>What I want to do is to remove the .0 at the end. How can I do this?
  The code looks like this:</p>
  
  <pre><code>    public List&lt;Survey&gt; getAllSurvey(List&lt;Status&gt; statusList) {
      String sqlValues = "SELECT * FROM status WHERE idCategory = (SELECT idCategory FROM category WHERE name = '"
              + statusList.get(0).getCategoryName() + "');";
      List&lt;Survey&gt; survies = new ArrayList&lt;Survey&gt;();
      try {
          List&lt;Map&lt;String, Object&gt;&gt; rows = getJdbcTemplate().queryForList(
                  sqlValues);
          for (Map row : rows) {
              Survey survey = new Survey();
              survey.setCategoryName(statusList.get(0).getCategoryName());
              survey.setValue((String) (row.get("value")));
              survey.setUnit((String) row.get("unit"));
              survey.setTimestamp(row.get("timeStamp") + "");
              survies.add(survey);
              System.out.println(survey.toString());
          }
      } catch (BadSqlGrammarException e) {
          e.printStackTrace();
      } catch (Exception e) {
          System.out.println(sqlValues);
          e.printStackTrace();
      }
      return survies;
  }
  </code></pre>
  
  <p>Thanks in advance!</p>