depends what data you have in database? Date or datetime?
also, show your code if you want help
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I am beginner. I need help on how to get the data on the same date. I have to to get the data from the same date for the 'start date' and 'end date' I managed to do a filter range but let say I want the system to display the data on this particular date for ex: Start date: 2/3/23 End Date: 2/3/23 (ONLY) , instead of doing that, I have to enter a day before and a day after for example: Start date: 1/2/23 - End Date: 3/3/23 or Start Date: 2/3/23 - End Date: 3/3/23. Then, I could have the data for 2/3/23.
and this is what I did in the controller:
public function product (Request $request){
$StartDate = $request->start_date ?? null;
$EndDate= $request->end_date ?? null;
Please or to participate in this conversation.