Date = Yesterday?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joris De Groote

    #1

    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


  • Larry Lard

    #2
    Re: Date = Yesterday?


    Joris De Groote wrote:[color=blue]
    > Hi
    >
    > How can I easily make a date object that has the date in it of yesterday?
    > (yesterdag of the date the program runs ;) ).[/color]

    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

    Comment

    Working...