How to get first and last day of the week in JavaScript

I have today = new Date(); object. I need to get first and last day of the current week. I need both variants for Sunday and Monday as a start and end day of the week. I am little bit confuse now with a code. Can your help me?

75
задан Tareq 31 December 2013 в 05:09
поделиться