How to use RadDateInput for time in asp.net?

不想你离开。 提交于 2019-12-12 01:43:07

问题


How to use RadDataInput by time formated in asp.net?

I use this code , but when i get Text of control , get me date and time.

I want get time only

<telerik:RadDateInput ID="RadDateInput1"  DateFormat="HH:mm"  runat="server"  >  
</telerik:RadDateInput>

回答1:


Try this code ,

  string _time = RadDateInput1.SelectedDate.Value.ToShortTimeString();


来源:https://stackoverflow.com/questions/21379134/how-to-use-raddateinput-for-time-in-asp-net

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!