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

[Solved] Can I set min(only-hour-minute) for DateTimePicker()?

3 Answers 66 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nim
Top achievements
Rank 1
Nim asked on 11 Apr 2011, 07:23 PM
Hello,

I wonder if I use DateTimePicker(), can I use min() to restrict only the "time" but not the date at all?

Thank you!

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 Apr 2011, 06:18 AM
Hi Nim,

 No, you can't. The min () setting restricts both the date and the time.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nim
Top achievements
Rank 1
answered on 12 Apr 2011, 02:25 PM
In our case, we need the day-time field for after-6:00am and before-8:00pm.  I am hoping there is a way we won't need the users to go through all the unnecessary time-option in the list (starting from 12:00am).

If min() won't work for only-time, is there other options that may address my concern?  If not, is there any future plan to add an option to solve my problem?

Many thanks.

0
Nim
Top achievements
Rank 1
answered on 12 Apr 2011, 02:53 PM
Hello,

I've found the answer to my own question.
I may use

.StartTime("6:00am").EndTime("8:00pm")

to address the issue.  Thank you.
Tags
Date/Time Pickers
Asked by
Nim
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Nim
Top achievements
Rank 1
Share this question
or