I need my CJuiDateTimePicker to only show a range of time because it would help me in a client validation. The thing is:
I have this two variables: $contract->init_date and $contract->years_valid.
I need to create a new object that has contract_id as an attribute. I can’t create it if it’s out of range. In the form, I need to be able to show the CJuiDateTimePicker only showing the date of validity of the contract.
As example: if $contract->init_date = ‘2008-03-12’ and $contract->years_valid = 5, then the timepicker needs to show only dates from 2008-03-12 to 2013-03-12’.
Would it be particullarly difficult to do that. I’ve read a lot and I don’t find a solution to this.
Yeah, you’re right. My bad. I was talking about CJuiDatePicker. I’ll try what you just said. By the moment I wrote this post I was too tired of coding. And my brain was tired. Sorry. And thanks for answering