Skip to content

Extension of JavaScript Date object to get date of begining/end of any given date.

License

Notifications You must be signed in to change notification settings

mcsdodo/date-boundaries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

date-boundaries

Extension of JavaScript Date object to get date of begining/end of any given date.

How to use

// returns date of first day in the month
var date = new Date(2000, 0, 15);
date.getFirstOfMonth() 
//-> Date {Sat Jan 01 2000 00:00:00 GMT+0100 (Central Europe Daylight Time)}

// returns date of first day in the month
date.getLastOfMonth() 
//-> Date {Mon Jan 31 2000 00:00:00 GMT+0100 (Central Europe Daylight Time)}

About

Extension of JavaScript Date object to get date of begining/end of any given date.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages