Skip to content

Takes a Date object and returns a Date object for the last day of its month (set to midnight local time).

Notifications You must be signed in to change notification settings

rossb/get-last-date-of-month

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Takes a Date object and returns a Date object for the last day of its month (set to midnight local time).

Resources

Stars

Watchers

Forks

Packages