prevYr Function

Retrieves the date in the previous year that corresponds most closely to a specified date.


date prevYr(date date)

Parameter

Description

date

The date to match in the previous year.

The closest match to date that is found in the previous year.

// Returns the date 28/02/1995 (1996 is a leap year).
prevYr(29\02\1996);
 
// Returns the date 28/02/1997.
prevYr(28\02\1998);

Community Additions

ADD
Show: