{I+=codeWee;} |
response.Write GetAge(cdate("1950-1-1")) function GetAge(birthday) age = cint(datediff("yyyy", birthday, date())) y = year(date()) m = month(birthday) d = day(birthday) thisyearBirthday = cdate(""&y&"-"&m&"-"&d&"") if cint(datediff("d", thisyearBirthday, date())) < 0 then age = age-1 end if GetAge = age end function