angular-hijri-gregorian-datepicker
Version:
[](https://www.npmjs.com/package/angular-hijri-gregorian-datepicker) [](https://www.npmjs.com/package/angular-hijri-
25 lines (24 loc) • 1.31 kB
TypeScript
import { Data, DayInfo, MonthDays } from '../_interfaces/calendar-model';
import * as i0 from "@angular/core";
export declare class DateUtilitiesService {
calendarData: Data;
constructor();
parseDate(dateStr: string): Date | null;
formatDate(date: Date): string;
getDayShortHand(date: Date): string;
generateDates(fD: DayInfo, lD: DayInfo, uC: number): MonthDays;
convertDate(dateStr: string, isGregorian: boolean): DayInfo | null;
private isDateInMonthRange;
getMonthData(inputDate: string, type: string): DayInfo[] | null;
getGregorianMonthData(day: number, month: number, year: number): DayInfo[] | null;
getUmAlQurraMonthData(day: number, month: number, year: number): DayInfo[] | null;
calculateGregorianDate(startGDate: string, offset: number): string;
calculateUmAlQurraDate(startUDate: string, offset: number, uC: number): string;
getDayName(dayIndex: number): string;
checkPastOrFuture(inputDate: any, targetDate: any): "Future" | "Past" | "Today";
parseEnglish(englishNum: any): any;
parseArabic(arabicNum: any): any;
convertDateNumerals(date: string, targetLang: 'en' | 'ar'): string;
static ɵfac: i0.ɵɵFactoryDeclaration<DateUtilitiesService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<DateUtilitiesService>;
}