Hello all, 

I need to figure out someone's age.

I have their date
of birth and I have today's date. How do I get the end result. My math
skills SUCK.

Here's my code (loaded in from the database with a SELECT
statement):

put item 7 of myLine into dobMonth
put item 8 of myLine
into dobDay
put item 9 of myLine into dobYear
put chartonum("dobYear")
into dobYearNum
put the long system date into field "TodayDate"

I
figured I would subtract this year from the dobyear and get the age - am
I right? How would I do this if I am?

Mike 
  
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to