Results 1 to 4 of 4

Thread: Getting yesterday date

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2002
    Posts
    77

    Getting yesterday date

    Is there any simple way that i can get yesterday dates ?? for your information, the date format that i am using is MM/dd/yy.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    VB Code:
    1. Public Function GetYesterday()
    2.   GetYesterday=DateAdd("d",-1,now)
    3. End Function

  3. #3
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    VB Code:
    1. MsgBox Format$(DateAdd("d", -1, Now), "MM/dd/yy")


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  4. #4
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950
    MsgBox Date-1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width