VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Add/Subtract from a Date

Saw'd Off  ()   Miscellaneous   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Subtracts a day from a date provided by the
user. Code can be edited to add a day(s) or
subtract more than one day. Code can also be
changed to include Year, Quarter, Month, Day of
year, Day, WeekDay, Week, Hour, Minute, or
Second.

Inputs
Input a date with a 2 digit month, 2 digit day, and a 4 digit year. (Note: I formated the text box to automatically enter the "/" marks as you type the date)

Returns
As presented, this code will subtract one day from the date. Example: Enter 03/31/2001 and you will get 03/30/2001.

Side Effects
None Known.

Rate Add/Subtract from a Date (5(5 Vote))
Add/Subtract from a Date.bas

Add/Subtract from a Date Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters