Anonymous Anonymous - 10 months ago
356 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();