Dear Sirs,
I am unable to search based on date using the Daterangepicker while employing the following format:
$col = array();
$col[“title”] = “Date”;
$col[“name”] = “programedate”;
$col[“width”] = “300”;
$col[“formatter”] = “date”;
$col[“formatoptions”] = array(“srcformat”=>’Y-m-d’,”newformat”=>’D, M d, Y’);
$col[“editable”] = true; // this column is editable
$col[“editoptions”] = array(“size”=>20, “defaultValue” => date(“Y-m-d”));
$col[“stype”] = “daterange”;
$col[“searchoptions”][“opts”] = array(“initialText”=>”Select date range…”);
$col[“editrules”] = array(“required”=>true, “edithidden”=>true); // and is required
$cols[] = $col;
Please advise.
best regards,
Your Answer