VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Add/Subtract from a Date

by Saw'd Off ()
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

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)
Code 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

Upload

Download this snippet    Add to My Saved Code

Add/Subtract from a Date Comments

No comments have been posted about Add/Subtract from a Date. Why not be the first to post a comment about Add/Subtract from a Date.

Post your comment

Subject:
Message:
0/1000 characters