Adding days to $Date in PHP Get link Facebook X Pinterest Email Other Apps February 15, 2021 <?php $Date = "2010-09-17"; echo date('Y-m-d', strtotime($Date. ' + 1 days')); echo date('Y-m-d', strtotime($Date. ' + 2 days')); ?> And it outputs correctly: 2010-09-18 2010-09-19 Get link Facebook X Pinterest Email Other Apps Comments
MySQL date format DD/MM/YYYY select query? November 28, 2020 You can use STR_TO_DATE() to convert your strings to MySQL date values and ORDER BY the result: ORDER BY STR_TO_DATE(datestring, '%d/%m/%Y') However, you would be wise to convert the column to the DATE data type instead of using strings. Read more
Laravel Auth Registration and Login with Bootstrap February 01, 2023 composer require laravel/ui php artisan ui bootstrap php artisan ui bootstrap --auth npm install npm run dev npm run production Read more
Comments
Post a Comment