Anonymous Anonymous - 9 months ago
336 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();