Home All Groups Group Topic Archive Search About
Author
15 May 2006 10:03 AM
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

Author
15 May 2006 10:59 AM
Larry Lard
Joris De Groote wrote:
> 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.

--
Larry Lard
Replies to group please