How about:

<cfset Age = year(Now()) - year(BDay)>

I didn't test this.

Andy

-----Original Message-----
From: Dave Lyons [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 14, 2002 5:22 PM
To: CF-Talk
Subject: how do i do this in cf?


I need to take a user entered date (date of birthday) (ex: may 1 of ,
1971) and have it show their actual age  (31) to
Anything  cool in cf that will do that?

Thanks
dave




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to