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.