Say I have a simple date like this.
$date = 2017-08-10 00:06:10;
I would like to have an if statement that tells me whether or not the date is empty. These are my methods but I'm not sure if it's the proper way of doing it. .
if(empty($date)) {
// do nothing
} else {
// do something
}
if($date == 0000-00-00 00:00:00) {
// do nothing
} else {
// do something
}