I have this snippet of code:
if ($informations->fundation_date != $dateFoundation) {
echo 'estou no echo diferente do date';
$alter .= 'fundation_date/';
} else {
echo 'esta igual date';
}
echo'data antiga: '.$informations->fundation_date;
echo'data nova: '.$dateFoundation;
Use postgree database; I'm comparing whether the date has changed in input , but even when I do not change the date it comes different. Because in the bank (fundation_date) comes as 1995-05-11 and already in input 05/11/1995. How can I do that, but that they are the same when it is so?