var dt = new Date('string_date');

var tdt = sdt.toISOString().substring(0, 10);


ex) tdt => '2017-09-13'


Posted by kunoo
,