Select a Table from Range Dates [SOLVED] April 16, 2020, 04:04:14 PM Hello, I need do a filter with dates in a table, which component would i use?I cannot find how to pass the parameters Start Day / End DayCan someone give me some light about this?Thanks you in advanceOsvaldo Quote Selected Last Edit: April 18, 2020, 03:56:24 PM by ocalle
Re: Select a Table from Range Dates Reply #1 – April 16, 2020, 05:01:33 PM Quote from: ocalle – April 16, 2020, 04:04:14 PMHello, I need do a filter with dates in a table, which component would i use?I cannot find how to pass the parameters Start Day / End DayCan someone give me some light about this?Thanks you in advanceOsvaldoUse the DateField and set DateMode to Range. Quote Selected 1 Likes
Re: Select a Table from Range Dates Reply #2 – April 16, 2020, 05:28:11 PM @barakak thank you that work fine, i have spanish standard date as dd-mm-yy or d-m-Y, can you help me with how can i check the date filter with phpdatetime format? The filter ever return empty, i have data. Quote Selected
Re: Select a Table from Range Dates Reply #3 – April 17, 2020, 08:04:32 AM Quote from: ocalle – April 16, 2020, 05:28:11 PM@barakak thank you that work fine, i have spanish standard date as dd-mm-yy or d-m-Y, can you help me with how can i check the date filter with phpdatetime format? The filter ever return empty, i have data.There's a date format property for the date, try that Quote Selected
Re: Select a Table from Range Dates Not Solved Yet Reply #4 – April 18, 2020, 01:42:46 PM Hello Again, Date filter in range mode not work. Single day works, multiple days works, both work finebut range between days put on 1st January of 1970 and gives an error tooAttached are the screensI dont know what can i do.thanks in advance Quote Selected
Re: Select a Table from Range Dates [SOLVED] Reply #5 – April 18, 2020, 03:59:22 PM The error is on the controller when u add range by date Need check the source in controller folderwhen u use english the filter is TO } if(!empty($request->ausentismos_fecha)){ $vals = explode("to", str_replace(" ", "", $request->ausentismos_fecha)); $startdate = $vals[0]; $enddate = $vals[1]; $db->where("ausentismos.fecha BETWEEN '$startdate' AND '$enddate'"); }when u use spanish the filter is a } if(!empty($request->ausentismos_fecha)){ $vals = explode("a", str_replace(" ", "", $request->ausentismos_fecha)); $startdate = $vals[0]; $enddate = $vals[1]; $db->where("ausentismos.fecha BETWEEN '$startdate' AND '$enddate'"); }I think in other languages need put the correct word to replace "to" Quote Selected