Quote:
Originally Posted by mgpai
Has to be formatted using JS code
|
Example:
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());
Quote:
Originally Posted by zreenmkr
...comparison operator is what I had in the script. So any idea?
|
Only the mods have access to the attachment. I have tested both scripts using comparision operator and they are working correctly.