Skip to content

Instantly share code, notes, and snippets.

@Webklex
Created July 24, 2013 09:22
Show Gist options
  • Save Webklex/6069162 to your computer and use it in GitHub Desktop.
Save Webklex/6069162 to your computer and use it in GitHub Desktop.
Zeit zwischen zwei Daten
<?php
$now = time(); // or your date as well
$your_date = strtotime("2010-01-01");
$datediff = $now - $your_date;
echo floor($datediff/(60*60*24));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment