From the course: Visual Basic Essential Training
Unlock this course with a free trial
Join today to access over 24,500 courses taught by industry experts.
Challenge: Strings, dates, and parsing - Visual Basic Tutorial
From the course: Visual Basic Essential Training
Challenge: Strings, dates, and parsing
- [Narrator] For this code challenge, you'll work with strings, dates, and parsing string values. The program aims to attain two pieces of input from the user and calculate a new date based on those values. You can build your app as a console or as a WPF application. The idea is to obtain two values from the user, a starting date, which will serve as the base for calculations. Also, you'll get an interval value, which is a numeric input indicating how many days and months to add to the starting date. Validate that the input values are correct, the user could enter the word yellow for the interval value. That is not acceptable. Do not allow non date or number values. Use the interval value to calculate a new date by adding days and months. For example, consider a scenario where the starting date is June 5th, 2000 and the interval value provided by the user is five. The program will interpret this interval as adding five days and five months to the starting date, starting from June 5th,…
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
The date types2m 27s
-
(Locked)
Define date and time variables1m 6s
-
(Locked)
Initialize date and time values4m 42s
-
(Locked)
Output formatted date values3m 50s
-
(Locked)
Date manipulation2m 14s
-
(Locked)
Challenge: Strings, dates, and parsing1m 47s
-
(Locked)
Solution: Strings, dates, and parsing2m 22s
-
(Locked)
-
-
-
-
-
-
-
-
-
-