If you want to declare a variable using moment.js with a concrete date and time:
moment.js
javascriptlet date = moment('20200920 08:00', 'YYYYMMDD hh:mm');
let date = moment('20200920 08:00', 'YYYYMMDD hh:mm');
Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.