|
Rank: Newbie Groups: Member
Joined: 9/5/2007 Posts: 2
|
Hi.. Just want to know how do I put range validator control on Timepicker (eventually Datepicker control and changed its Pickup format as time format). For example suppose I got 2 time picker control 'start time ' and 'end time' , i want set up this control as 'end time' cannot be less than 'start time' .. I would be appreciated for an early reply. Thanks Biju
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
|
|
Rank: Newbie Groups: Member
Joined: 9/5/2007 Posts: 2
|
It works fine with Datepicker..but I am confusing how to use it on Time picker control.Also this you mentioned that the DatePicker needs to be first formatted in the form of "yyyy-MM-dd". But in my case I not using date at all , and using pickupformat as "hh:mm:ss tt". It would be helpfull if have some sample code for it..
Cheers
B
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Biju,
I see. I am not sure whether time picker supports range validator. I will find out and let you know.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Biju,
We verified that the time picker does work with RangeValidator. However you need to include a date value of "0001-01-01" in your RangeValidator. For example, if you want the range to be 01:00:00 to 02:00:00, you want to set the RangeValidator's MaximumValue to 0001-01-01 01:00:00 and MinimumValue to 0001-01-01 02:00:00.
Thanks
|
|