Results 1 to 3 of 3

Thread: tomorows date

  1. #1

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193

    tomorows date

    i know in VB you can get todays date using date()

    but how do i get tomorows and the next weeks dates ?
    (i have searched but returned 0 results)
    please help, and thanks if you do

    Senorbadger

  2. #2
    Member Siu Yan's Avatar
    Join Date
    Apr 2004
    Location
    Hong Kong --> Ireland
    Posts
    49
    If you want the user can select the date, you can use MonthView, goto Project --> Components --> Microsoft Windows Common Controls - 2.X.X

    I'm using 2.6.0

    If you want to get it by programming itself, you can use Now for today date.

    e.g. Msgbox Now

    Msgbox Now + 1 will give the date of tomorrow
    Quitters never Win, Winners never Quit, But those who Never Win and Never Quit are Idiots

  3. #3
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Look up the DATEADD function in the help

    DateAdd("d",1,Now) returns tomorrow's date
    DateAdd("d",-1,Now) retirms yesterday's date
    DateAdd("m",1,Now) returns a date in a month's name

    etc
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

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