示例#1
0
        public static DateTime ConvertJalaliStringToDateTime(string input)
        {
            cDate cDate = new cDate(1);

            cDate.fromJalali(input);
            return(cDate.ToDateTime());
        }
示例#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")));
        }