title: How to get current time stamp in android?
body: <p>I want to get current Timestamp in this <strong>YYYY-MM-DDTHHmmssZ</strong> .For instance; Expected value : 2016-01-01%2000:00:00. I have tried various methods,One of them is below :</p>
  
  <pre><code>String timeStamp = new SimpleDateFormat("YYYY-MM-DD'T'HH:mm:ss'Z'").format(new Timestamp(System.currentTimeMillis()));
  </code></pre>
  
  <p>Still I am facing the error (didn't getting expected output which is 2016-01-01%2000:00:00) , Any help will be appreciate,thanks. </p>