- Code: Select all
function test(event) {
var d = new Date();
application.output(d.getUTCDay());
//tooltip says
//getUTCDay(): Number
//Returns the day of the week from a date according to universal time (from 1-31)
application.output(d.getUTCDate());
//tooltip says
//getUTCDate(): Number
//Returns the day of the month from a date according to universal time (from 0-6).
}
getUTCDay() gets the day of week (0-6)
getUTCDate() gets the day of month (1-31)
Please fix, it fooled me and caused a bug in my automatic scripts.