quarterrange
v1.1.2
Published
Get start and end date of quarters
Downloads
2
Readme
quarterrange
Get start and end date of quarters
Installation
$ npm install quarterrange
# or
$ bower install quarterrange
Usage
var quarter = require('quarterrange');
var firstQuarter = quarter(0);
console.log('From:', firstQuarter.from.toISOString());
console.log('To:', firstQuarter.to.toISOString());
/*
From: 2016-01-01T00:00:00.000Z
To: 2016-03-31T23:59:59.000Z
*/
Test
$ npm test
License
Copyright (c) 2016 Dominic Bartl, MIT License