add +1 day in given date in php
<?php
$stop_date = '2009-09-30 20:24:00';
echo 'date before day adding: ' . $stop_date;
$stop_date = date('Y-m-d H:i:s', strtotime($stop_date . ' +1 day'));
echo 'date after adding 1 day: ' . $stop_date;
?><?php
// PHP program to add days to $Date
// Declare a date
$date = "2019-05-10";
// Add days to date and display it
echo date('Y-m-d', strtotime($date. ' + 10 days'));
?>
Also in PHP:
- check var type php
- check string exist in php
- curl_multi_exec
- add unique value in array php
- TIME 24 FORMAT PHP
- datephp
- check if in array key php
- fgets in php ommit new line
- SET CURRENT DATE TIME IN PHP'
- asia time zone in php
- data type check in php
- change php version ubuntu
- filteredduplicata php
- Jan 5, 2021 15:37:25 time format php
- daye in php
- acheck key exist in array php
- How to execute “php artisan migrate” and other Laravel commands in remote server?
- Fatal error: Allowed memory size of 1073741824 bytes exhausted (trie
- create database seeder in laravel
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 5287496 bytes) on laravel
- build laravel project
- display errors off php
- changing php version in composer in server
- create user laravel seeder