I am trying to use this function:
these variables are stored in datetime format of mysql.
if (date('Ymd', $var1) == date('Ymd', $var2)
Why does this output true every time?
Any other suggestions on how to do this? Please keep in mind I'm limited to doing this in PHP on this page without using any database. And I'm looking only for the same date not a 24Hour difference, however I don't care about differences in time zones as long as both variables reflect the same timezone.