Rank: Member Groups: Member
Joined: 10/18/2010 Posts: 29
|
Hello
Is there any way to set the maximum time on a datetimepicker control to be <= current time? I currently have the maxvalidDate = system.datetime.now, which is preventing the end user either selecting a date via the calendar control, or manually entering a date > today's date. The only issue is that the picker control still allows time values greater than current time
Thanks
Jason
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
No. I do not believe there is any control on the time part. You might want to add some JavaScript code to validate user input before submitting the page.
Thanks!
|