datepicker minDate maxDate range for search
-
I’m trying to limit the searchable dates in the datepicker by picking up the first start_date and last end_date in the database.
I am able to modify scope.php in my custom template file and add a minDate manually like so:
var datepicker_vals = { altFormat: "yy-mm-dd", changeMonth: true, changeYear: true, firstDay : EM.firstDay, yearRange:'-100:+10', minDate: '04/22/2014' };}
Could someone point me in the right direction to extract the first start and last end dates from the database automatically?
If I had that, I could just define it as a variable.
Help is appreciated, thanks in advance!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘datepicker minDate maxDate range for search’ is closed to new replies.