title: Insert character in string using javascript
body: <p>I have this date1, I want to insert "-" to make it 2016-09-23. Is anyone know how to do this using javascript?</p>
  
  <pre><code>var date1 = "20160923";
  </code></pre>