I am trying to write some code that refers to the day of the week and when this happens, it does something.
var today = new Date();
var wday = today.getDay();
debugPrintln("getDay=",+ getDay());
debugPrintln("getHour=",+ getHour());
debugPrintln("close=",+ close());
debugPrintln("wday=",+ wday);
Am I referencing this right? The only weekday(wday) I get is 6(saturday). That is today's date.The other numbers come out ok.
There isn't very much written about this.
var today = new Date();
var wday = today.getDay();
debugPrintln("getDay=",+ getDay());
debugPrintln("getHour=",+ getHour());
debugPrintln("close=",+ close());
debugPrintln("wday=",+ wday);
Am I referencing this right? The only weekday(wday) I get is 6(saturday). That is today's date.The other numbers come out ok.
There isn't very much written about this.
Comment