Big thanks 😃 Weedpacket.
Here is what my code looks like now, and works fine:
$t_today = getdate();
$t_day = $t_today['mday'];
$t_month = $t_today['mon'];
$t_year = $t_today['year'];
$today = mktime(0,0,0,$t_month,$t_day,$t_year);
$fix_date = GetDateSelectString();
list($day, $month, $year) = explode('-', $fix_date);
$fix_date2 = mktime(0,0,0,$month,$day,$year);
$error_code = "0";
if ($fix_date2 < $today) {
error
} else {
ok
}