Fiscal Quarters

If you ever have need for Fiscal, Calendar or Academic quarters, you can use the moment-fquarter plugin by @robgallen.

At its simplest, just call the fquarter method on any moment object. It returns a formatted string with April being the first quarter.

  1. moment("2013-01-01").fquarter();
  2. // Q4 2012/13

You can pass in any month as the starting quarter, e.g. July

  1. moment("2013-01-01").fquarter(7);
  2. // Q3 2012/13

If you want calendar quarters, start in January

  1. moment("2013-01-01").fquarter(1);
  2. // Q1 2013