I have dates in this format: "28.03.2014". So DD-MM-YYYY.
How do I calculate the number of days since this date?
I found another question where the accepted answer was pretty long, and the date was also in another format.
$now = time(); // or your date as well
$your_date = strtotime("2010-01-01");
$datediff = $now - $your_date;
echo floor($datediff/(60*60*24));
Is this still the way to do things, and do I have to reformat my dates to fit into strtotime?