How correct is it to compare dates in this way?
$today = date('Ym-d'); $outdate = "2011-11-02"; if($today >= $outdate) {... I used to know it was necessary to translate into different timestamps, but it seems now, if you set the date in this format. everything should be ok, isn't it?
$curdate = date('dmY', strtotime('now')); $revenge_date = "25.05.2015";$curdate = date('dmY', strtotime('now')); $revenge_date = "25.05.2015";if there are first days of the month, then they will be less than 25, even though the year will be longer. And the code will not work correctly! - I_CaR