This is a migrated thread and some comments may be shown as answers.

[Solved] how to obtain timepicker value?

1 Answer 60 Views
TimePicker for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aneesh
Top achievements
Rank 1
Aneesh asked on 03 Sep 2012, 09:42 PM
Hi again everyone,



How do you get the value (in c#) of the time that the user has entered in the timepicker? I want to assign that value to either a TimeSpan (preferable) or DateTime (not preferred, but ok).



Thanks,

Aneesh

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 06 Sep 2012, 03:38 PM
Hello Aneesh,

 TimePicker (similar to the Datepicker) exposes property Value that holds the information that the controls shows (the user has entered). Its type is Nulalble<DateTime>. Unfortunately, there is no property that directly exposes TimeSpan.

Kind regards,
Tsvyatko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TimePicker for XAML
Asked by
Aneesh
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or