Welcome Guest Search | Active Topics | Sign In | Register

DatePicker date rounding Options
cn
Posted: Sunday, October 12, 2008 12:33:01 PM
Rank: Advanced Member
Groups: Member

Joined: 8/31/2008
Posts: 33
Hi,

I'm using 2 DatePricker controls (start date & end date) on a page that displays a customer's orders. When the page is initialized the following code is executed:
Quote:

if (!Page.IsPostBack)
{
eoStart.SelectedDate = DateTime.Now.AddDays(-1);
eoEnd.SelectedDate = DateTime.Now;
}
Orders orders = new Orders(userid, eoStart.SelectedDate, eoEnd.SelectedDate);
rptOrders.DataSource = orders.GetOrders();
rptOrders.DataBind();


This code works as intended and passes in a date/time value that includes the current hour, minute & seconds. The problem is when the page is posted back the SelectedDate property gives a value that is rounded up to midnight for the selected dates.
IMO the control should round the date when the SelectedDate property is set so it behaves consistently.

Thanks,
cn
eo_support
Posted: Sunday, October 12, 2008 5:30:21 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have posted a new build that fixed this problem. Please see your private message for download location.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.