How to add numbers to a date time string

this script gives a date time stamp
6-1-2020 tijd: 20:6:11

i want
06-01-2020 tijd: 20:06:11 (extra 0 before day, month, hour etc.)
is this possible?

var today = new Date();
var date = today.getDate() +'-'+(today.getMonth()+1) +'-'+ today.getFullYear();
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
msg.dateTime = date+' tijd: '+time;
return msg;

You can use padStart(2, '0')

Take the moment node, in the output string you can make the output as you want.

thanks! Works!