<?php $date = '0000-02-29 00:00:00 UTC'; $timestamp = strtotime($date); for ($i = 0; $i < 29; $i++) { $timestamp = (new \Datetime('@' . $timestamp))->getTimestamp(); } echo (new \Datetime('@' . $timestamp))->format('Y-m-d');
You have javascript disabled. You will not be able to edit any code.