All Projects → arabiaweather → hijri-date

arabiaweather / hijri-date

Licence: MIT License
Gregorian to Hijri Date Convertor for NodeJS

Programming Languages

javascript
184084 projects - #8 most used programming language

Gregorian To Hijri date convertor

This is a node module that allows you to convert Gregorian Dates to Hijri date with ease, also support day adjustments.

Usage

Installation

Install module using NPM

npm install hijri

Code Usage

var hijri = require('hijri');
//hijri.convert accepts 2 Arguments Date , Date Adjustment by days 
console.dir(hijri.convert(new Date(), 0));
Output
{ dayOfWeekText: 'الثلاثاء',
  dayOfWeek: 3,
  dayOfMonth: 18,
  month: 4,
  monthText: 'ربيع الآخر',
  year: 1435 }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].