Here is whaw I'm trying to do:
I am trying to calculate the difference in years between today's date and a date(year) that I am storing in a database.
How can I pull the year form the query into the datediff function?
Here is the code: The second specifier is causing problems "(#ayear#)"
<cfoutput query="emplist2">
#first_name#'s - #datediff("yyyy",now(), (#ayear#))# Years
</cfoutput>
I am trying to calculate the difference in years between today's date and a date(year) that I am storing in a database.
How can I pull the year form the query into the datediff function?
Here is the code: The second specifier is causing problems "(#ayear#)"
<cfoutput query="emplist2">
#first_name#'s - #datediff("yyyy",now(), (#ayear#))# Years
</cfoutput>