One of Common UI projects module was Calendar. it may seem easy but writing a calendar is a hard work, especially if you want to support multiple calendar like Persian and Hijri. before writing the calendar i had to write 3 different Date types : (Georgian Date, Persian Date, Hijri Date).
- Persian Date or (Shamsi – based on SUN)
- Hijri Date (Arabs Date-time – based on MOON)
Dates are easily convertible and chainable : new PersianDate(1365, 3, 23).addDays(100).toHijriDate().addYears(-100).toGeorgianDate().dayName
it supports :
- Enable / Disable
- Culture (Different calendars)