The day of the week starts on Monday and not on Sunday.

Hi, 

how do I change the value in the code so that the day of the week starts on Monday and not on Sunday? Thank you for your help.


var dayOfWeekNumber = Time.Gregorian.info(Time.now(), Time.FORMAT_SHORT).day_of_week -1;      //week starts on Sunday, not Monday?