$RESULT[EPEDAT] (Pay period ending date)
...and compare it to a variable that gives me the UNIX timestamp of two weeks ago:
$twoweeks = strtotime('-14 days');
I want to only display the most current paystub, based on $RESULT[EPEDAT] from the database.
I've tried converting $RESULT[EPEDAT] to a timestamp and then doing the math, but I can't seem to make it work.
The record date ($RESULT[EPEDAT]) is in mm/dd/yyyy format.
What's the best way to go about this?