get-last-date-of-month
v1.0.0
Published
Takes a Date object and returns a Date object for the last day of its month.
Downloads
3
Readme
get-last-date-of-month
Takes a Date object and returns a Date object for the last day of its month. The date object returned is set to midnight local time.
Install
$ npm install get-last-date-of-month --save
Usage
const GetLastDateOfMonth = require('get-last-date-of-month');
let endOfMonth = GetLastDateOfMonth( new Date() );
// Date object representing the last day of the current month