Exemplo n.º 1
0
        public static string getAgeStr(string birthdate)
        {
            CalculateAgeCls m_AgeCls = new CalculateAgeCls();
            DateTime        dtbirth  = Convert.ToDateTime(birthdate);

            return(m_AgeCls.GetAgeByBirthdaystr(dtbirth, DateTime.Now));
        }
Exemplo n.º 2
0
        public static int[] getAgeBytime(string birthtime, string nowtime)
        {
            CalculateAgeCls m_AgeCls = new CalculateAgeCls();
            DateTime        dtbirth  = Convert.ToDateTime(birthtime);
            DateTime        nowdate  = Convert.ToDateTime(nowtime);

            return(m_AgeCls.GetAgeByBirthday(dtbirth, nowdate));
        }