We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to retrieve selected date in DateTimePickerAdv?

In DateTimePickerAdv, the selected value can be retrieved by following below steps.

 

  • The date selection of the calendar popup can be detected by handling the event named “DateSelected” of the Calendar property in DateTimePickerAdv.
  • The selected value can be retrieved by using the property named “Value” in DateTimePickerAdv.

 

The following code example demonstrates the same.

C#

 

VB

 

The DateSelected event will be raised when selecting the date using the mouse click.

Figure 1. The selected value of the DateTimePickerAdv.

Sample Links:

C#: DateTimePickerAdv_SelectedValue_C#

VB: DateTimePickerAdv_SelectedValue_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
6344 02/19/2016 02/19/2016 Windows Forms DateTimePickerAdv
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.