GetAscension([TheYear])
Last updated October 5, 2001
Version: 1 | Requires: ColdFusion 5 | Library: DateLib
Description:
Returns the date for Ascension in a given year. If no year is specified, defaults to the current year.
Return Values:
Returns a date object.
Example:
Ascension falls/fell on #DateFormat(GetAscension(), 'dddd mmmm dd, yyyy')# this year.
</CFOUTPUT>
Parameters:
| Name | Description | Required |
|---|---|---|
| TheYear | Year you want to get Ascension for. | No |
Full UDF Source:
<cfscript>
/**
* Returns the date for Ascension in a given year.
* This function requires the GetEaster() function available from the DateLib library.
*
* @param TheYear Year you want to get Ascension for.
* @return Returns a date object.
* @author Beau A.C. Harbin (bharbin@figleaf.com)
* @version 1.0, October 5, 2001
*/
function GetAscension() {
Var TheYear=Year(Now());
if(ArrayLen(Arguments))
TheYear = Arguments[1];
Return DateAdd("d", 39, GetEaster(TheYear));
}
</cfscript>
Search CFLib.org
Latest Additions
Dave Anderson added
iniToStruct
20 day(s) ago
Dave Anderson added
deDupeArray
20 day(s) ago
Richard added
dice
22 day(s) ago
Isaac Dealey added
getRelative
a while ago
Top Rated
backupDatabase
Rated 5.0, 22 time(s)
indentXml
Rated 5.0, 10 time(s)
generateSsccAsn
Rated 5.0, 4 time(s)
highlightAndCrop
Rated 5.0, 4 time(s)