Horje
Adding or Subtracting Time Code Example
Adding or Subtracting Time
$dateTime = new DateTime('2016-01-01');
$dateTime->modify('+1 day');
echo $dateTime->format('Y-m-d H:i:s');`
# Output: 2016-01-02 00:00:00

# You can as well use the constructor if you work on the current date:



$dateTime = new DateTime('+1d');
echo $dateTime->format('Y-m-d H:i:s');`
# Output the current date plus one day.




Php

Related
if post php Code Example if post php Code Example
php preg_match email validation code Code Example php preg_match email validation code Code Example
php hide notice Code Example php hide notice Code Example
get random posts wordpress Code Example get random posts wordpress Code Example
__construct Code Example __construct Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8