CFLib.org – Common Function Library Project

GetQuinquagesima([TheYear])

Last updated October 05, 2001

author

Beau A.C. Harbin

Version: 1 | Requires: CF5 | Library: DateLib

Description:
Returns the date for Quinquagesima in a given year. If no year is specified, defaults to the current year.

Return Values:
Returns a date object.

Example:

<CFOUTPUT>
Quinquagesima falls/fell on #DateFormat(GetQuinquagesima(), 'dddd mmmm dd, yyyy')# this year.
</CFOUTPUT>

Parameters:

Name Description Required
TheYear The year to get Quinquagesima for. No

Full UDF Source:

/**
 * Returns the date for Quinquagesima in a given year.
 * This function requires the GetEaster() function available from the DateLib library.
 * 
 * @param TheYear      The year to get Quinquagesima for. 
 * @return Returns a date object. 
 * @author Beau A.C. Harbin (bharbin@figleaf.com) 
 * @version 1.0, October 5, 2001 
 */
function GetQuinquagesima() {
  Var TheYear=Year(Now());
  if(ArrayLen(Arguments)) 
    TheYear = Arguments[1];
  Return DateAdd("d", -49, GetEaster(TheYear));
}

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

Created by Raymond Camden / Design by Justin Johnson