add day to php date
<?php
// adding extra days to date
// Steps:
// 1) using carbon
// 2) using strtotime
//Step 1
$date = date('Y M d h:i:s') // 2020 09 22 22:09:26 UTC
$new_date = Carbon::parse($date->addDays(1); // adds extra day
// Step 2
$date = date('Y M d h:i:s') // 2020 09 22 22:09:26 UTC
echo $new_date = date('Y M d h:i:s', strtotime($date. '+1 day'));
?>
Also in PHP:
- find days with name between two dates in php
- add 1 day to date php
- check if string not contains php
- display product page title in field cf7
- all words capital php
- Get the number of days between two dates in PHP
- check if a text contains a string
- How to add validation form image in laravel
- This behaviour is (currently) not supported by Doctrine 2
- Capital letters php
- contains php string
- eloquent update row response
- clear nuget cache
- check if after specific position has string php
- Allowed memory size of 134217728 bytes exhausted setup di compile
- H:i. format
- Notice: Undefined variable: _SESSION in C:\xampp\htdocs\practice\header.php on line 7
- check array in array key
- create a folder php
- array push object php
- check text in string php
- create new seeder laravel
- create new laravel project 8
- codeigniter sms send