<?php if((date('Y-m-d', strtotime($value->subscription_time)))==(date('Y-m-d'))):?>
<div class="notifications_wrap_inner_text">
<p>
<?php echo $value->name;?> wants to join your group.
<?php echo date('H:i A ',strtotime($value->subscription_time));?>
</p>
<?php endif; ?>
Ι want to compare two dates exactly as the above links show compare of greater then and smaller dates and not the exact one the above code runs on each case whether the dates are matching or not matching !!!!
Any suggestions?
Thanks in advance