The Yesterday function returns the date of the day before the current date, as a TDateTime data type.
The value does not include time, which is set to 00:00:00.
Declaration: Function Yesterday: TDateTime;
A example showing the function used along with FormatDateTime. If the current date is 23/11/2023, then Yesterday would return 22/11/2023.
For additional information, please see DateTime (TDateTime).