https://github.com/ad-si/end-of-week
Get the last day of a week (Sunday) according to UTC
https://github.com/ad-si/end-of-week
Last synced: 6 months ago
JSON representation
Get the last day of a week (Sunday) according to UTC
- Host: GitHub
- URL: https://github.com/ad-si/end-of-week
- Owner: ad-si
- License: isc
- Created: 2016-03-15T17:57:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-28T23:17:08.000Z (over 9 years ago)
- Last Synced: 2025-02-09T12:20:45.177Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# End of Week
Get the last day of a week (Sunday) according to UTC
[](https://travis-ci.org/adius/end-of-week)
## Installation
```shell
npm install --save end-of-week
```## Usage
```js
const endOfWeek = require('end-of-week')
const date = new Date('2016-06-21')console.log(endOfWeek(date))
// => new Date('2016-06-26')
```