title: How to add hours in datetime in JavaScript
body: <p>I want to add hours in DateTime. I have googled it but couldn't find any code. </p>
  
  <p>Here is this datetime <code>2018-07-25 20:23:22</code>. I want to add hours in this datetime so it gives me new datetime in the same format</p>
  
  <p>I have tried this. </p>
  
  <pre><code>var datetime = "2018-07-25 20:23:22";
  datetime.setHours(datetime.getHours()+5); 
  </code></pre>
  
  <p>But It didn't work.</p>