title: How to set time with date in momentjs
body: <p>Does <strong>momentjs</strong> provide any option to set time with particular time ?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var date = "2017-03-13";
  var time = "18:00";
  
  var timeAndDate = moment(date).startOf(time);
  
  console.log(timeAndDate);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.17.1/moment.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/kA0BC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kA0BC.png" alt="enter image description here"></a></p>