const date = '2020-04-17T03:00:00.811000Z';
const newDate = [...date].reduce((str, char) => {
if (char === '-') return str;
if (char === ':') return str;
if (char === '.') return str;
return str + char;
}, '');
console.log(newDate); // 20200417T030000811000Z