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 13 entries

# ID Order no Order date Customer name Order amount Order status Actions
1 172 27 0000-00-00 50 6
2 173 33 2025-09-02 Deacon Tyson 111 Completed
3 174 0 0000-00-00 Cooper Jensen 0
4 175 23 2025-09-17 111 ok
5 176 0 0000-00-00 10
6 178 33 2025-09-02 Deacon Tyson 111 ok
7 179 33 2025-09-02 Deacon Tyson 111 ok
8 182 1 2025-07-01 Xenos Clarke 82325 Pending
9 184 576749678 2025-09-03 798797 asdas
10 185 0 0000-00-00 0 1
# ID Order no Order date Customer name Order amount Order status Actions