3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = 41568; //Excel-Datum im Zahlenformat umwandeln in Datum 1 = 1.1.1900 if (preg_match("/^\d+$/", $value) && intval($value) > 0) $value = date('Y-m-d', (strtotime('1970-01-01 12:00:00') + (($value - 25569) * 86400))); echo $value."<br>";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2013-10-21<br>