I have a JSON response coming with the object of '20180715' and I need to convert that string to date, for example:
let dateString = '20180715';
I tried Date testdate = new Date (dateString); //fails.
How can I convert it to a date object in TypeScript?
Thanks in advance!