prev-day
1.0.1 • Public • Published prev-day
Get the previous occurance of a day of the week, eg: last Thursday
Installation
npm install --save prev-day
Usage
var prevDay = require('prev-day');
prevDay(new Date(), 1);
^ date object ^ day since prev Monday
prevDay(new Date(), prevDay.Monday);
Package Sidebar
Install
Weekly Downloads