I have a function to help find the end of a lease. the problem is it uses the Unix Timestamp (which I hate). Is there an alternate way to do this that doesn't return "December 31, 1969" when using dates beyond 2038?
_______________
_brian.
Code:
function findLeaseEnd($m,$d,$y,$t){
$term = ($d == 1) ? ($t - 1) : $t;
$newdate = $y."-".$m."-".$d." + ".$term." months";
$leaseEnd = date("F t, Y",strtotime($newdate));
return $leaseEnd;
}
_______________
_brian.