469,632 Members | 1,670 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,632 developers. It's quick & easy.

Date = Yesterday?

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
May 15 '06 #1
1 2467

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

May 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by necromancer_stupidspambot | last post: by
16 posts views Thread by Donnal Walter | last post: by
4 posts views Thread by Manny Chohan | last post: by
15 posts views Thread by Paul J. Ettl | last post: by
8 posts views Thread by Anonmyous | last post: by
2 posts views Thread by Thierry Lam | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.