% language=vbscript %>
The ASP Birthday Countdown Application
(professional Version!)
Use it to find out how long you have to wait until your next birthday.
<% else UserMonth = Request.Form("BirthdayMonth") UserDay = Request.Form("BirthdayDay") UserYear=Request.Form("BirthdayYear") BirthdayString = DateValue (UserMonth & "/" & UserDay & "/" & UserYear) Response.Write ("The Birthdate you entered is : "& BirthDayString & "
") UserAge = (DateDiff ("yyyy", BirthdayStirng, Now)) If CInt(UserMonth) < (Month(date)) Then UserAge = UserAge + 1 End If NextBirthdayDate = DateSerial (UserYear+UserAge, UserMonth, UserDay) response.Write ("Your next Birthday is on : " &_ NextBirthdayDate & "
") Response.Write ("You have to wait ") Response.Write (Datediff( "d", Now, NextBirthdayDate)) Response.Write (" days until your birthday !
") End If %>