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);
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.1
5
Version History
Package Sidebar
Install
Weekly Downloads