Esempio n. 1
0
        public static DateTime ConvertJalaliStringToDateTime(string input)
        {
            cDate cDate = new cDate(1);

            cDate.fromJalali(input);
            return(cDate.ToDateTime());
        }
Esempio n. 2
0
        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")));
        }