1

I know you can get the current time using the Now() function, but how would you get the date of yesterday?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343

1 Answers1

6

Why not just use Date - 1 ?

Since one day is 1.0 in TDateTime encoding, substracting 1 is enough.

Arnaud Bouchez
  • 42,305
  • 3
  • 71
  • 159