AZCalendar is a framework for IOS it has gregorian calendar , persian calendar hijri calendar (islamic calendar) , and you can convert dates from each calendar to each other simply
Simply use the Frame work that it is in the framework directory for ObjectiveC projects or Swift and ## don’t forget to add the general->Embedded Binaries
for Using AZCalendar you Don't need instance Object of this Class you can call function with class name 'AZCalendar
for getting today info you can use AZCalendar.getCurrentPersianDate() , AZCalendar.getCurrentHijriDate() and AZCalendar.getCurrentGregorianDate() that returns a DateType instance that has day and month and year as Int
if you want to know the month name in each calendar type use AZCalendar.getMonthName that wants a DateType Object and your Clander type , CalendarType is enum that has 3 value persian , gregorian and hijri
if you want know the day of week you can use AZCalendar.getDayIndex that return the Int 0 means to day is Sunday , 1 means today is Monday and …
for converting date to each others you can use the AZCalendar.convertDate that it wants a instance of DateType and the origin and destination calendarType and returns a DateType Obkect ###Example :
let source = DateType.init(day: 5, month: 8, year: 1395) let gregorian = AZCalendar.convertDate(inputType: .persian, inputDate: source, outputType: .gregorian)
now the gregorian object hasr 3 field that day is = 26 , month = 10 and year is 2016