title: How to get Date object from ISO Date string without dash(-) and colon(:) in Javascript
body: <p>I was converting ICS to JSON, but it gave me date in the format like <code>"20190103T073640Z"</code>, How to I get date object from this string in Javascript?</p>
  
  <p>I know there are lots of answers for <em>"how to convert ISO string to date object"</em>, but this string is missing dash and colon. </p>
  
  <p>For e.g
  When I add dash and colonn, it gives output correctly</p>
  
  <p><code>new Date("2019-01-03T07:36:40Z");</code></p>
  
  <p>But how to get a date object in javascript from date string like this without dash and colons <code>"20190103T073640Z"</code>??</p>
  
  <p><strong>Edit for people who think this is duplicate -</strong>
  I have ICalendar file, I am using online converter to convert it to JSON, so the converter I am using giving out the date in that format which is not in the format which I can directly pass to <code>new Date()</code> to get a date object out of it. So is there any method which could parse "20190103T073640Z" string like this.</p>
  
  <p>Thanks.</p>