Yesterday()
Last updated August 17, 2001
Version: 1 | Requires: CF5 | Library: DateLib
Description:
Returns a date object representing yesterday.
Return Values:
Returns a date object representing tomorrow.
Example:
<CFOUTPUT>
Yesterday was #DateFormat(Yesterday())#<BR>
</CFOUTPUT>
Parameters:
No arguments.
Full UDF Source:
/**
* Returns a date object representing yesterday.
*
* @return Returns a date object representing tomorrow.
* @author Ben Forta (ben@forta.com)
* @version 1, August 17, 2001
*/
function Yesterday() {
return DateAdd("d",-1,Now());
}
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