|
Hi
i have a DOB date format 31/12/2003 and want
to calculate the age today.
my current attemp to get this working is
below but i can't switch the date format to match my stored info
(DOB)
I cant work out how to combine the date format and
the date create
#DateFormat(1960,06,10, "dd/mm/yyyy")#
here is my current attempt
<cfscript>
yearssgone = DateDiff("yyyy",CreateDate(1960,06,10),NOW()); </cfscript> <strong>age today :<cfoutput>#yearssgone#</cfoutput></strong> Can any one help with this one.
maybe a simpler snippet
thanks inadvance
greg stone
---You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ |
