public static DateTime ConvertJalaliStringToDateTime(string input) { cDate cDate = new cDate(1); cDate.fromJalali(input); return(cDate.ToDateTime()); }
public static int ConvertJalaliStringToGregorianInt(string input) { cDate cDate = new cDate(1); cDate.fromJalali(input); DateTime dateTime = cDate.ToDateTime(); return(Convert.ToInt32(dateTime.Year.ToString() + dateTime.Month.ToString("00") + dateTime.Day.ToString("00"))); }