Andy Ousterhout wrote:

>How about:
>
><cfset Age = year(Now()) - year(BDay)>
>
>  
>
That almost works... but if someones birthday it the 15th of march, and 
you're doing the comparison before the 14th, then you'll make that 
person 1 year to old in your system, so you need to compensate for that.

Jesse

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to