This is a migrated thread and some comments may be shown as answers.
Rad TimePicker
1 Answer 6 Views
This is a migrated thread and some comments may be shown as answers.
Mian
Top achievements
Rank 1
Mian asked on 22 May 2015, 06:27 AM

I'm working on Windows Form and i have selected Rad TimePicker for time insertion  into sql server.

i want to insert time in the form of 11:23 AM/PM . Value  inserted into sql server is in 11:23:00 format not in  11:23 AM/PM format. 

Please guide me.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 22 May 2015, 08:09 AM
Hello Mian,

Thank you for writing.

The RadTimePicker.Value property always tries to parse the text in the editable part to DateTime. That is why the Value is supposed to return a DateTime value. In order to keep only the time part  in a specific format, you can store TimePickerElement.MaskedEditBox.Text property instead. Additionally, you can specify the desired format by setting the TimePickerElement.Format property.

I hope this information helps. Should you have further questions, I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Mian
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or