- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
var day = new Date(values.date_b.substring(0, 10));
var days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
var curDay = day.getDay();
for(var i = 0; i < days.length; i++) {
if (days[i] == days[ day.getDay() ]) {
curDay = i;
break;
}
}
curDay = (curDay == 0) ? 7 : curDay;