console.log(
('00' + (new Date('3/4/2019')).toLocaleDateString("en-US").split('/')[1]).slice(-2)
);
IE:
"4"
Chrome
"04"
What is the workaround?
console.log(
('00' + (new Date('3/4/2019')).toLocaleDateString("en-US").split('/')[1]).slice(-2)
);
IE:
"4"
Chrome
"04"
What is the workaround?