This plugin is inspired by https://github.com/arabiaweather/hijri-date
Hijri plugin allow you to convert gregorian date to islamic hijri date.
tns plugin add nativescript-hijri
import {Observable} from 'data/observable';
import {Hijri, islamicDateObject} from 'nativescript-hijri';
export class HelloWorldModel extends Observable {
public message: string;
private hijri: Hijri;
constructor() {
super();
this.hijri = new Hijri(new Date,0);
this.message = this.hijri.hijri_en.dayOfWeekText;
console.dir(this.hijri.hijri_en);
}
}
Method | Return | Description |
---|---|---|
hijri_ar |
Object:islamicDateObject |
Accepts 2 Arguments Date , Date Adjustment by days. return Object of islamicDateObject where day and month are written in arabic alphabet. |
hijri_en |
Object:islamicDateObject |
Accepts 2 Arguments Date , Date Adjustment by days. return Object of islamicDateObject where day and month are written in English alphabet. |
rkhayyat |