<?php $myDate = "2018-07-20 11:00:00"; $unix = strtotime($myDate); if(time() > ($unix + 86400*3)){ $days = -1; }else if(time() > ($unix + 86400*2)){ $days = 0; }else{ $days = "something else"; } Echo $days;
You have javascript disabled. You will not be able to edit any code.