Returns the day of the week for the CalculationDate.

var date = now.valueOf('2016-02-22'); // a monday

console.log('Day of the week = %s', date.dayOfWeek());

// Day of the week = 1
Did this answer your question?