none
how can i store only time without date in datebase using radtimepicker option RRS feed

  • Question

  • Design page

     <telerik:RadTimePicker RenderMode="Lightweight" ID="tp_StartTime" runat="server">
        <TimeView TimeFormat="h:mm "></TimeView>
    </telerik:RadTimePicker>

    Coding Page

      cmd.Parameters.Add("@StartTime", Convert.ToDateTime(tp_StartTime.SelectedTime).ToString("HH:mm"));
                cmd.Parameters.Add("@ActEndTime", SqlDbType.VarChar, 30).Value = txtestendtime.Text;
                cmd.Parameters.Add("@Shift", SqlDbType.VarChar, 30).Value = gen;
                cmd.Parameters.Add("@Status", SqlDbType.VarChar, 30).Value = txtstatus.Text;

    Tuesday, July 2, 2019 6:50 AM

All replies

  • Hi,

    "RadTimePicker" is a third-party control, and it is much related to ASP.NET. However, this forum is discussing the questions about Winforms.

    So, it will be more appropriate to ask your question at Telerik Forums.

    Thank you for your understanding.

    Regards,

    Kyle


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, July 2, 2019 8:49 AM