title: How to convert facebook string timestampformate to timestamp ts in java?
body: <p>I'm trying to convert the facebook string to time stamp formate in java.
  When I tried with sample code it works fine.</p>
  
  <pre><code>  String text = "2011-10-02 18:48:05.123456";
    Timestamp ts = Timestamp.valueOf(text);
    System.out.println("time stamp formate" +ts);
  </code></pre>
  
  <p>But when I put <code>String text = "2016-02-14T05:22:18+0000";</code>  (fb Time stamp in String formate) in the same String text it is Giving me EXCEPTION saying</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
  at java.sql.Timestamp.valueOf(Timestamp.java:204)
  </code></pre>