1.0.0 • Published 8 years ago

get-last-date-of-month v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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