diff --git a/application/views/income_expense_list.php b/application/views/income_expense_list.php index b1243389..f3077479 100755 --- a/application/views/income_expense_list.php +++ b/application/views/income_expense_list.php @@ -260,5 +260,30 @@ function inex(input){ } }); } +$( function() { + //var dateFormat = "mm/dd/yy", + from = $( "#min-date" ) + .datepicker({ + dateFormat: "dd-mm-yy", + defaultDate: "+0d", + changeMonth: true, + //numberOfMonths: 1 + + }) + .on( "change", function() { + to.datepicker("option", "minDate", getDate( this ) ); + }), + to = $( "#max-date" ).datepicker({ + dateFormat: "dd-mm-yy", + defaultDate: "+0d", + changeMonth: true, + //numberOfMonths: 1 + + }) + .on( "change", function() { + from.datepicker( "option", "maxDate", getDate( this ) ); + }); + + } );