title: How to convert date to this(yyyy-MM-ddTHH:mm:ssZ) format
body: <p>Im trying to convert date into yyyy-MM-ddTHH:mm:ssZ format but am enable to get it,
  the scripting code am using is<br></p>
  
  <pre><code>var dateForUrl = new Date();
  currentDate1=dateForUrl.toISOString();
  </code></pre>
  
  <p>this thing is converting the date but not in exact format as i want,it converts date as like <code>2016-09-25T13:00:00.000Z</code> where am expecting date like <code>2016-09-25T13:00:00:00Z</code>,i also tried </p>
  
  <pre><code>var dateInURL = new Date();
  dateInURL = moment(dateInURL,"YYYY-MM-DD HH:mm:ssZZ").toDate();
  </code></pre>
  
  <p>it returns date as like <br></p>
  
  <p>Sun sep 25 2016  00:00:00 gmt+0530  (india standard time)</p>
  
  <p><br>so how can i get the date in <code>yyyy-MM-ddTHH:mm:ssZ format</code></p>