by Nico Ecke (1 Submission)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)
In general this is a function, that validates an entered date. It sets the output-date one day after the input-date and verifies if there is a month or year-break and even handles leap-years.
I made it because I needed a way to point dates where the end can't be before the beginning, which may happen thru bad inputs. In this way the end-date is always in the future of the beginning-date.
Inputs
The function accepts dates only. This could be the first day of your hollidays!
Assumes
In this archive is a complete vb6-project. The function itselve is in the 'DateValidation'-Module and can be completely extracted. The form is just an example how it works.
I've done a bit commenting. I think it should be enough.
Code Returns
The function returns a date-value. In this case the last day of your hollidays!
Side Effects
not known
Download DateValidation (3 KB)