I have a website with an automatic updating footer, where you can find the date. But the footer gives the complete wrong date. This is the code behind it:
$(function(){
var now = new Date();
var mm = now.getMonth() + 1;
$("#footer").html(`© NekoLuka ${now.getFullYear()}/${mm}/${now.getDay()}`);
}
Today is 2018/10/24, But the footer gives 2018/10/3.
Does anyone know how to solve this?