|
-
Aug 13th, 2004, 03:23 AM
#1
Thread Starter
Addicted Member
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
-
Aug 13th, 2004, 03:41 AM
#2
Member
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 
-
Aug 13th, 2004, 03:44 AM
#3
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|