Rad TimePicker

2 posts, 0 answers
  1. Mian
    Mian avatar
    1 posts
    Member since:
    Apr 2015

    Posted 22 May 2015 Link to this post

    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.

  2. Dess
    Admin
    Dess avatar
    1607 posts

    Posted 22 May 2015 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top