85
rated 0 times
[
90]
[
5]
/ answers: 1 / hits: 19941
/ 6 Years ago, sun, july 15, 2018, 12:00:00
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!
More From » string