<?php function dateCompare($a, $b) { $t1 = strtotime($a); $t2 = strtotime($b); return $t1 - $t2; } print dateCompare('2013-12-02', '2013-12-06');
You have javascript disabled. You will not be able to edit any code.