Use DateTimePicker with Date and Time Structs

Опубликовано: 20 Апрель 2026
на канале: rory mulcahey
253
0

In this video we will cover how to use a DateTimePicker control, the DateTime and TimeSpan structs.

Basic Steps:
Setup DateTimePicker Control
Modify starting value of control
Implement DateTime struct with various dates
Use overloaded DateTime subtraction to find TimeSpan
Convert TimeSpan to a double with TotalDays
Display Result in MessageBox


C# .NET
Windows Form Application
Visual Studio
Messagebox Show
DateTimePicker Control
TimeSpan
DateTime
Struct
Overloaded Methods