note 13797 deleted from function.getdate by jimw

From: Date: Mon, 22 Oct 2001 23:42:51 +0000
Subject: note 13797 deleted from function.getdate by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19303@lists.php.net to get a copy of this message
//code to add 14 business days to current date $today = getdate(); $weekday = $today['wday']; if($weekday == 1) //to give 14 business days $plus = 18; else $plus = 20; $deadline = date("F d", mktime(0,0,0, date(m), date(d)+$plus,0)); //initial format (ie. January 21) //modify first parameter of date() to change //works only when executed on weekdays

« previous php.notes (#19303) next »