public static string getAgeStr(string birthdate) { CalculateAgeCls m_AgeCls = new CalculateAgeCls(); DateTime dtbirth = Convert.ToDateTime(birthdate); return(m_AgeCls.GetAgeByBirthdaystr(dtbirth, DateTime.Now)); }
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)); }