Development tools : Global functions : Date category : before
  
before
Description
While calculating the date which is before specified (days, months, years) period than a given date, the process sequence is days, then months, and lastly years.
Usage
Client side: Y
Server side: Y
Syntax
Date before(Date date, Integer days, Integer months, Integer years)
Argument
date
The date to be calculated. The argument can by any date type data.
days
The number of days before. The argument can be any integer number, if the value is negative, it will be considered as after.
months
The number of months before. The argument can be any integer number, if the value is negative, it will be considered as after.
years
The number of years before. The argument can be any integer number, if the value is negative, it will be considered as after.
Return
Returns the date which is before than a given date with specified (days, months, years) period. If any of argument is empty, empty value will be returned.
Example
before(2010/01/20,5,-1,1)
returns 2009/02/15.
Go up to
Date category