Anonymous Anonymous - 6 months ago
258 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();