Dates are printed in several common formats. Two of the more common formats in the U.S. are:

04/25/1955 and April 25, 1955

1. Create the graphical interface as shown in Figure 3.

Figure 3. Figure 3. Graphical User Interface for Exercise 2: see image.

2. The user will enter a date in the first format above (04/25/1955) in the text box on the form. When the user clicks the Convert button, the application will display the date that was entered in the second format shown above (April 25, 1955) in a message box similar to Figure 4.

Figure 4. Message box showing converted date for Exercise 2: see image.

3. If the date was entered in an invalid format, your code must display a message box similar to that shown in Figure 5.

Figure 5. Message box showing invalid date error for Exercise 2: see image.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.