$days = 60 * 60 * 24 * 14; // seconds * minutes * hours * days if ($dateline < time() - $days) { ... }