Returns the date of the day preceding the current day or a given date.
// Displays yesterday's date
Info("Yesterday was " + DateToString(Yesterday()))
Syntax
<Result> = Yesterday([<Date>])
<Result>: Character string
Date of the day preceding <Date> in YYYYMMDD format (YYYY corresponds to the year, MM to the month and DD to the day).
<Date>: Character string, optional Date or DateTime
Date to use. This parameter can correspond to: - a character string in YYYYMMDD format (YYYY corresponds to the year, MM to the month and DD to the day),
- a Date or DateTime variable.
If this parameter is not specified, the date used corresponds to today's date.
Business / UI classification: Neutral code