@elisha_langworth
You can use the Carbon library in Laravel to print the date without the time. Here's an example:
1 2 3 4 5 6 7 8 9 10 |
use CarbonCarbon; // Get the current date and time $date = Carbon::now(); // Format the date without the time $formattedDate = $date->format('Y-m-d'); // Print the date without the time echo $formattedDate; |
This will output the current date in the format 'Y-m-d' (year-month-day) without the time component. You can change the format string to suit your needs.