note 13797 added to function.getdate.php

From: Date: Tue, 03 Jul 2001 18:53:39 +0000
Subject: note 13797 added to function.getdate.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14942@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 http://www.php.net/manual/en/function.getdate.php

« previous php.notes (#14942) next »