Code:
var myDate = function() {
var t = new Date();
var year = t.getFullYear();
var month = ("0" + (t.getMonth() + 1)).slice(-2);
var date = ("0" + t.getDate()).slice(-2);
return [year, month, date].join("-");
}
alert(myDate());
Sweet, thanks!!
Quote:
Only the mods have access to the attachment. I have tested both scripts using comparision operator and they are working correctly.
|
here is the attached on public imgur. See both scripts executed when Button 1 is pressed
screenshots