|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
hi,
i've try convert my php to cfml but i've failure to convert the myAge() function. how to get an age using birthday eg. September 08 1980 or 1980-09-08 or 1980/09/08 This is the PHP code PHP Code:
__________________
Making it different not a profit |
|
#2
|
|||
|
|||
|
<cfset myBirthday = "04/02/71">
<cffunction name="doAge"> <cfargument name="birthday"> <cfreturn dateDiff( 'yyyy', arguments.birthday, now() )> </cffunction> <cfoutput> #doAge( myBirthday )# </cfoutput>
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
wow!
very nice!thanks kiteless! ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Get Age From Birthday |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|