public static function withinPastTwoWeeks($date) { $interval = Utils::getInterval($date); return $interval && $interval->d <= 14; }