Related questions
Add days to JavaScript Date
How to add days to current Date using JavaScript. Does JavaScript have a built in function like .Net's AddDay?
Getting current date and time in JavaScript
I have a script that prints the current date and time in JavaScript, but the DATE is always wrong. Here is the code:
var currentdate = new Date();
var datetime = "Last Sync: " + currentdate.getDay() + "/" + currentdate.getMonth()
+ "/" + currentdate.getFullYear() + " @ "
+ currentdate.getHours() + ":"
+ currentdate.…