CFLib.org – Common Function Library Project

Yesterday()

Last updated August 17, 2001

author

Ben Forta

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());
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson