import jdatetime # convert jalili date to gregorian date gregorian_date = jdatetime.date(1396,2,30).togregorian() # convert gregorian date to jalili date jalali_date = jdatetime.date.fromgregorian(day=19,month=5,year=2017)