date_default_timezone_set('asia/Dhaka'); $expire = strtotime("-1 days"); if($expire <= time()){ echo '<br>Expired on '. date('F j, Y, g:i:s A', $expire); }else{ echo '<br>Running until '. date('F j, Y, g:i:s A', $expire); }