cachaito
4/1/2019 - 8:12 PM

Nowa data ze stringu

var date1 = new Date('2019-04-01'); //2019-03-31

var date2 = new Date('2019/04/01'); // 2019-04-01
date2.setHours('9');
date2.setMinutes('36');
// Mon Apr 01 2019 09:36:00 GMT-0500 (CDT) 

var date3 = new Date('2019-04-01T12:09:36');