goldenBirthday(birthday)
Last updated May 01, 2009
Version: 0 | Requires: CF6 | Library: DateLib
Description:
Returns a 'golden birthday', or the date when your birthday day of month equals your age.
Return Values:
Returns a date.
Example:
<cfoutput>#goldenBirthday(createDate(1973,4,8))#</cfoutput>
Parameters:
Name | Description | Required |
---|---|---|
birthday | The date of birth. | Yes |
Full UDF Source:
<!---
Returns a 'golden birthday', or the date when your birthday day of month equals your age.
@param birthday The date of birth. (Required)
@return Returns a date.
@author Joshua Siok (jsiok@smp.org)
@version 0, April 30, 2009
--->
<cffunction name="goldenBirthday" access="public" returntype="date">
<cfargument name="birthDate" type="date" required="yes">
<cfreturn dateAdd("yyyy", day(birthDate),birthDate)>
</cffunction>
Search CFLib.org
Latest Additions
Raymond Camden added
QueryDeleteRows
November 04, 2017
Leigh added
nullPad
May 11, 2016
Raymond Camden added
stripHTML
May 10, 2016
Kevin Cotton added
date2ExcelDate
May 05, 2016
Raymond Camden added
CapFirst
April 25, 2016