the following is code that i use to check if today's date is greater than 2 months ago from a specified date
Code: Select all
<?php if(mktime(0,0,0,date('m'),1,date('y')) >= strtotime($acc_info['ExpireDate'])-strtotime('-2 months')){ // if expiry date is due in 2 months time ?>i was looking up inpuit formats for the strtotime however i notice nuthing on using months...
would this yield correct results?
i get a timestamp but i am unsure if it is correct or not...just wonderingstrtotime('-2 months')