On using Visual Basic, one of the most common control used to display a Date and Time is DateTimePicker, DateTimePicker is just like a combobox. If you click a dropdown arrow it displays a month calendar. And using this control it allows you to select Date and Time by modifying the format properties of this control.
This time let’s create a new project called “DateTimePicker”. Then add four DateTimePicker and button control from the toolbox. Then arrange it same as shown below:
Then we will change the Format property of DateTimePicker2 to “short”, DateTimePicker3 to “Time” and the