Results 1 to 2 of 2

Thread: SQL BDAY?

  1. #1
    dpat Guest

    Default SQL BDAY?

    Can anyone tell me how to calculate a users age by their birthday - is there any code for this action? <BR><BR>Thanks in advance!<BR>D

  2. #2
    Join Date
    Dec 1969

    Default RE: SQL BDAY?

    Well, I don&#039t know about their birthday, but what you could do is have the user input their present age and their birthday, w/o the year. Then, possibly, you could do something of this sort, this isn&#039t the exact code, nor is it correct, it&#039s just static:<BR><BR>if date&#060;=userbday then<BR>userbday = userbday + 1<BR>end if<BR><BR>Of course, you&#039d have to set up the date and such, but like I said, it&#039s just static. Hope that helps somewhat!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts