current-week
v1.0.11
Published
Shows the number, the date of the first and the date of the lasdt day or the current week.
Downloads
9
Maintainers
Readme
Current week
Get the current week number.
Install
Install with npm:
$ npm install --save current-week
Usage
const currentWeek = require('current-week');
currentWeek.getWeekNumber(); // Example: '47'
currentWeek.getFirstWeekDay(); // Example: '19.10.'
currentWeek.getLastWeekDay(); // Example: '25.10.'
About
Author
Niels Lange
License
Copyright © 2018, Niels Lange. Released under the MIT license.