I've converted a string ('2019-11-13T09:00Z') to an array as below using:
$new_date = date_parse($close_date[0]);
This is the resulting array:
Array ( [year] => 2019 [month] => 11 [day] => 13 [hour] => 9 [minute] => 0 [second] => 0 [fraction] => 0 [warning_count] => 0 [warnings] => Array ( ) [error_count] => 0 [errors] => Array ( ) [is_localtime] => 1 [zone_type] => 2 [zone] => 0 [is_dst] => [tz_abbr] => Z )
How do I compare it to today's date, ie. if the date (I know it's not really a date, but just an array) in the format above is in the future or past/today? Obviously, the 'if' statement is not a problem, it's comparing the date formatted as above is where I'm stuck.
Thanks
edit: as per the comments below, I've modified the wording of the question slightly.