title: Round moment.js object time to nearest 30 minute interval
body: <p>I was trying to round the moment.js time object to next nearest 30 minute interval. But looks my logic us wrong.</p>
  
  <p>Ex:</p>
  
  <pre><code>10:13am -&gt; 10:30am
  11:45am -&gt; 12:00pm
  </code></pre>
  
  <p>Here is my current code</p>
  
  <pre><code>start = moment();
  minuteReminder = start.minute() % 30;
  start.add(minuteReminder, 'minutes');
  start.format("D YYYY, h:mm:ss a");
  </code></pre>