indian-fiscal-year
v2.0.0
Published
Returns Financial Year (Indian Context) for a given Date
Downloads
24
Maintainers
Readme
Easily convert the Date to Fiscal Year for India
Features
- Get Indian Fiscal Year for a date.
- 1.7k minified/602b gzipped
- No Dependencies.
- Built with Typescript.
Install
NPM
$ npm install indian-fiscal-year Usage
Import Modules
ESModule:
import FinYear from 'indian-fiscal-year';CommonJS
const FinYear = require ('indian-fiscal-year').defaultIndian Fiscal Year
Input
let date = new Date();
let ify = FinYear.getFiscalYear(date)Output
ify = 2025-2026Indian Crop Seasons
Input
let date = new Date();
let cs = FinYear.getCropSeason(date)Output
cs = 'Kharif' or 'Rabi'Indian Assessment Year
Input
let date = new Date();
let iay = FinYear.getAssesmentYear(date)Output
iay = 2026-2027Indian Tax Year
Input
let date = new Date();
let ity = FinYear.getTaxYear(date)Output
ity = 2025-2026Indian Fiscal Quarter
Input
let date = new Date();
let qtr = FinYear.getQuarter(date)Output
qtr = 'Q1' or 'Q2' or 'Q3' or 'Q4'Indian Fiscal Quarter Year
Input
let date = new Date();
let qtrYear = FinYear.getQuarterYear(date)Output
qtrYear = `Q1 FY 2025-2026`For Bug Reports and Suggestions please use issues
