Question: Visual Basic 1: Exercise 9-1 Work with dates and times 1. Open the application thats in the C:VB 2015Chapter 09DateHandling directory. Within this project, youll

Visual Basic 1:

Exercise 9-1 Work with dates and times

1. Open the application thats in the C:\VB 2015\Chapter 09\DateHandling directory. Within this project, youll find a form that accepts a future date and a birth date and provides buttons for calculating days due and age.

2. Add code to calculate the due days when the user enters a future date and clicks the Calculate Due Days button. Use the IsDate function to make sure the date entry is valid, and display the results in a message box like this:

Current Date:

Future Date:

Days Until Due:

3. Test your code with a variety of date formats to see what formats can be successfully parsed. When youre done, close the form.

4. Add code to calculate the age when the user enters a birth date and clicks the Calculate Age button. Use the IsDate function to make sure the date entry is valid, and display the results in a message box like this:

Current date:

Birthdate:

Age:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!