際際滷

際際滷Share a Scribd company logo
dateCalendar
A Javascript Library for multi calendar conversions
Date Issues
 Based on Gregorian Calendar only
 English Day names and Month names
dateCalendar extends Date
 Multiple Calendar type support
 Localization based on Calendar type
 Multiple Language support
 Calendar conversion
Calendar types
 Jalali Calendar (Hejri Solar Calendar)
 Gregorian Calendar
 Islamic Calendar (Hejri lunar Calendar)
 Hebrew Calendar
Locales
 English
 Persian
Calendar conversion
 From any base Calendar type to all other types
 Julian Date
How to use
 Download from github (http://goo.gl/kPI7Xa)
 Add dateCalendar.js to your project
Demo
var jalaliDate = new Date("1393-02-19");
jalaliDate.setCalendarType(CalendarType.Jalali);
var islamicDate = new Date("1435-07-05");
islamicDate.setCalendarType(CalendarType.Islamic);
var hebrewDate = new Date("5774-02-09");
hebrewDate.setCalendarType(CalendarType.Hebrew);
Demo conversion
var date = jalaliDate.toGregorian();
var islamicDate = jalaliDate.toIslamic();
var hebrewDate = jalaliDate.toHebrew();
Demo Local
jalaliDate.toLocalizedString()
Jome 19 Ordibehesht 1393
jalaliDate.toLocalizedString(Local.Persian)
悴惺霸杞悋惘惆惡愆惠霸朿杞朿
jalaliDate.toLocalizedString(Local.Afghan)
悴惺霸杞惓惘霸朿杞朿
Demo Local 2
islamicDate.toLocalizedString()
al-jum`a 09 Rajab 1435
hebrewDate.toLocalizedString()
Yom Shishi 09 Iyyar 5774
Contact
Github: https://github.com/simorgh1/dateCalendar
Twitter: @bahramMaravandi

More Related Content

JavaScript Library for Calendar conversion