title: Converting String to TimeStamp using .valueOf() adds zero at the end of time
body: <p>When I convert this String to TimeStamp by using the method TimeStamp.valueOf(string), it adds '<strong>.0</strong>' at the end of TimeStamp. However I want it in the same format as of string but the data type should be TimeStamp.</p>
  <pre><code>String myStr = &quot;2021-08-25 09:46:26&quot;;
  TimeStamp dateTime = TimeStamp.valueOf(mystr);
  </code></pre>
  <blockquote>
  <p><code>returns 2021-08-25 09:46:26.0</code></p>
  </blockquote>
  <p>I've also tried SimpleDateFormat with pattern &quot;yyyy-MM-dd HH:mm:ss&quot;, but it also ruins the format.</p>