Set Search col data type Change data type of search column

You can set search col data type to date/datetime/time etc to make search more friendly. Default type is text. For example When you set search column data type to date-range, it will show date range options.

  
                                $pdocrud = new PDOCrud(); 
                                //set the search column data type
                                $pdocrud->setSearchColumnDataType("order_date", "date-range");// other options are time-range, datetime-range
                                echo $pdocrud->dbTable("orders")->render();
                                

Orders

Showing 1 to 10 of 85 entries

# ID Order no Order date Customer name Order amount Order status Actions
1 51 37429 2021-03-11 Xenos Clarke 78 Completed
2 52 1234567 2016-09-08 Xenos Clarke 26 Completed
3 55 83323 2016-09-08 Xenos Clarke 37 Completed
4 56 409 2016-09-08 Cooper Jensen 68 Completed
5 57 50683 2016-09-08 Deacon Tyson 28 Completed
6 59 48121 2016-09-08 1 Completed
7 61 37748 2016-09-08 Cooper Jensen 73 Completed
8 63 37920 2016-09-08 67 Completed
9 64 28431 2016-09-08 5 Completed
10 65 94701 2016-09-08 25 Completed
# ID Order no Order date Customer name Order amount Order status Actions