Date = Yesterday?

  • Thread starter Thread starter Joris De Groote
  • Start date Start date
J

Joris De Groote

Hi

How can I easily make a date object that has the date in it of yesterday?
(yesterdag of the date the program runs ;) ).

Thanks
 
Joris said:
Hi

How can I easily make a date object that has the date in it of yesterday?
(yesterdag of the date the program runs ;) ).

Dim yesterday As Date = Today.AddDays(-1)

Note this will be a 'pure date' - if you want the time as well, use Now
rather than Today.
 
Back
Top