title: Date Parse issue for ie browser in javascript
body: <p>my datepicker formate date = july-21-2014 11:00 AM</p>
  
  <p>i want to convert datepicker to timestamp formate like  2014-07-21T11:00:00. in javascript.</p>
  
  <p>for this purpose i have written  like </p>
  
  <pre><code>var now = new Date(date);
  var year    = now.getFullYear();
  var month   = now.getMonth()+1; 
  var day     = now.getDate();
  var hour    = now.getHours();
  var minute  = now.getMinutes();
  var second  = now.getSeconds(); 
  var convertedDate = year+'-'+month+'-'+day+'T'+hour+':'+minute+':'+second; 
  </code></pre>
  
  <p>it's working fine in chrome and firefox but it's failed in internet explore .</p>
  
  <p>i am getting date value like NaN-NaN-NaNTNaN:NaN:NaN.</p>
  
  <p>please help on this. how to resolve  this issue?</p>