quarterrange

1.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i quarterrange

Weekly Downloads

2

Version

1.1.2

License

MIT

Last publish

Collaborators

  • dominicbartl