title: convert javascript date format to YYYY-MM-DDTHH:MM:SS
body: <p>how to convert default date in javascript to YYYY-MM-DDTHH:MM:SS format.</p>
  
  <p>new Date() returns Sun Aug 07 2016 16:38:34 GMT+0000 (UTC) </p>
  
  <p>and i need the current date to above format.</p>