code: function(d) {
  		"use strict";
  
  		if (this.options.weekStartOnMonday === false) {
  			return d.getDay();
  		}
  		return d.getDay() === 0 ? 6 : (d.getDay()-1);
  	}
docs: Get the weekday from a date
  
  Return the week day number (0-6) of a date,
  depending on whether the week start on monday or sunday
  
  @param  Date d
  @return int The week day number (0-6)