1.0.3 • Published 8 years ago

final-working-day v1.0.3

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

final-working-day Build Status

Get final working day of the month

Install

$ npm install --save final-working-day

Usage

const finalWorkingDay = require('final-working-day');

finalWorkingDay();
//=> 2016-08-30T22:00:00.000Z - Date object

finalWorkingDay(2016, 12);
//=> 2016-12-29T23:00:00.000Z - Date object

API

finalWorkingDay(year, month)

Returns the final business working day of that month

year

Type: number Default: new Date().getFullYear()

Specify a year.

month

Type: number Default: new Date().getMonth()

Specify a month

License

MIT © Johnie Hjelm