Anonymous Anonymous - 4 months ago
212 0

Example how to add a day to a DateTime object.

PHP

PHP DateTime object + 1 day

<?php

$date = new DateTime();
$date->modify('+1 day');
$timestamp = $date->getTimestamp();
Comments