This is a migrated thread and some comments may be shown as answers.

PeriodEnd without a time component

1 Answer 60 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Frans
Top achievements
Rank 1
Frans asked on 25 May 2012, 09:29 PM
I'm setting the PeriodEnd on the Timebar control without any time component, i.e. 3/7/2011 12:00:00 AM.  When selecting dates on the UI, I can only select until 3/6/2011?  Is there a way to change this to display/select the PeriodEnd being passed in? I'm by default selecting the full date range (PeriodStart - PeriodEnd). 

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 30 May 2012, 01:27 PM
Hello Frans,

In .Net the date 3/7/2011 12:00:00 AM is equal to 3/6/2011 24:00:00. This means that if you say that your period ends at 3/7/2011 the timebar will show the period prior to 3/7/2011 (excluding it). If you want to include 3/7/2011 you can specify the ending of your period as 3/8/2011 12:00:00 AM.

Greetings,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TimeBar
Asked by
Frans
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or