I was converting ICS to JSON, but it gave me date in the format like "20190103T073640Z"
, How to I get date object from this string in Javascript?
I know there are lots of answers for "how to convert ISO string to date object", but this string is missing dash and colon.
For e.g When I add dash and colonn, it gives output correctly
new Date("2019-01-03T07:36:40Z");
But how to get a date object in javascript from date string like this without dash and colons "20190103T073640Z"
??
Edit for people who think this is duplicate -
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 new Date()
to get a date object out of it. So is there any method which could parse "20190103T073640Z" string like this.
Thanks.