From bab8d8ec9adc1b9b584c33c58994c16057eab3ba Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Fri, 29 Jun 2018 17:26:02 +0530 Subject: [PATCH] date picker in cashbooklisting screen --- application/views/income_expense_list.php | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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 ) ); + }); + + } );