开发者

append hours and minutes to get_selectedDate() from RadDatePicker control

开发者 https://www.devze.com 2023-01-22 23:42 出处:网络
How can I append hours and minutesget_selec开发者_高级运维tedDate? var date = picker.get_selectedDate() //append here

How can I append hours and minutes get_selec开发者_高级运维tedDate?

var date = picker.get_selectedDate() //append here

The reason I want to do this is because I have a procedure that allows filtering between dates in a RadGrid, but If you select to filter between one day it isn't allowed. Therefore I need to append 23:59 to the EndDate value.

any Ideas?


C#:

For DateTime:

DateTime selectedDate = datePicker.get_SelectedDate();

DateTime formattedDate = new DateTime(selectedDate.Year, selectedDate.Month, selectedDate.Day, 23,46,00);

Then set your date to your new date.

Written from my Droid X

0

精彩评论

暂无评论...
验证码 换一张
取 消