I’m running a Discord bot and the timestamp on some commands returns the wrong month.
with the code
var day = d.getDate(); var y = d.getFullYear(); var month = d.getMonth(); dmy = day + "/" + month + "/" + y // DD/MM/YY console.log(dmy)
today is April 1st, 1/4/2020
I’m running on node 12
I’m not sure what could be wrong, any ideas?
thank you in advance