I have a below date format need to convert it as
console.log(new Date(startDate)).toISOString();
console.log(new Date(endDate)).toISoString();
I need an output like this 20180928T00000 but which return 2018-11-01T00:00:00.000Z this format.
Current Output:
// startDate=2018-11-01T00:00:00.000Z
//endDate=2018-12-01T00:00:00.000Z
Expected
// StartDate=20181101T000000
// endDate=20181201T0000000';