title: How to get +15 minutes date time in Javascript with dd/mm/yyyy hh:ii AM/PM format?
body: <p>I have to get +15 minutes date time in Javascript with <code>dd/mm/yyyy hh:ii AM/PM</code> format.</p>
  
  <p>And I should compare two dates, which are in <code>dd/mm/yyyy hh:ii AM/PM</code> format.</p>
  
  <p>JS:</p>
  
  <pre><code>var date = new Date();
  var hours = date.getHours();
  var minutes = date.getMinutes();
  var ampm = hours &gt;= 12 ? 'PM' : 'AM';
  hours = hours % 12;
  hours = hours ? hours : 12; // the hour '0' should be '12' 
  hours = hours &lt; 10 ? '0' + hours : hours;
  minutes = minutes &lt; 10 ? '0' + minutes : minutes;
  var dd = date.getDate() &lt; 10 ? '0' + date.getDate() : date.getDate();
  var mm = (date.getMonth() + 1) &lt; 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1);
  var strTime = dd + '/' + mm + '/' + date.getFullYear() + " " + hours + ':' + minutes + ' ' + ampm;
  </code></pre>