How to get and set value of the datetimepicker control

hi,

I am following the tutorial:
https://help.syncfusion.com/xamarin/picker/datetimepicker?cs-save-lang=1&cs-lang=csharp
code: http://www.syncfusion.com/downloads/support/directtrac/general/ze/GettingStartedPicker1526116181

but it does not mention how to get/set the selected value of datetime,
How to get and set value of the datetimepicker control?

-ns

1 Reply 1 reply marked as answer

MS Mugundhan Saravanan Syncfusion Team November 13, 2020 12:57 PM UTC

Hi Nitin,

Greetings from Syncfusion

Query : “How to get and set value of the datetimepicker control

You can use the SelectedItem property for get and set the selected value. In that sample we have bind the StartDate(ObservableCollection<object> type) property to the SelectedItem property. So, when change the Date or time, its collections get changed and update in the StartDate property. Please check the updated sample (using latest versions).

Sample: https://www.syncfusion.com/downloads/support/forum/159659/ze/GettingStartedPicker-977631752  


Please let us know any concern.

Regards,
Mugundhan S.
 


Marked as answer
Loader.
Up arrow icon