date.prevYear

Syntax date.prevYear (date)

Params date is a valid Frontier date or a string that can be coerced to a date.

Action Returns a date exactly one year before the specified date

Returns A date exactly one year before the specified date

Examples date.prevYear ("12/5/97; 10:27:57 PM")

   » "12/5/96; 10:27:57 PM"

date.prevYear (clock.now ())

   » "4/7/99; 5:55:23 PM"

See Also date.nextYear

Discuss