Skip to content

arabiaweather/hijri-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 }

About

Gregorian to Hijri Date Convertor for NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published