Firstly I am a copy and paste programmer, nowhere near an expert.
My Code
$date = date(“Y-m-d”); // Todays Date
$date_unix = strtotime($date); // Todays date as Integer
$launchdate_unix = strtotime($launchdate); //Launch Date as Integer
$days_since_launch = ($date_unix - $launchdate_unix) / 86400; // Days since
Output
date 2020-11-23
date_unix 1606107600
launchdate 2020-10-18
launchdate_unix 1602993600
days_since_launch 36.041666666667
I need days_since_launch to be an integer irrespective of what time of day $date is calculated
Any suggestions welcome