note 58066 deleted from function.checkdate by cece

From: Date: Tue, 15 Nov 2005 14:46:42 +0000
Subject: note 58066 deleted from function.checkdate by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-98605@lists.php.net to get a copy of this message
Note Submitter: larskrueger at email dot de ---- hey hey i searched for a snippet like this some minutes resultless maybe its usefull ;-) it adds $d days to a date $day = 23; $month = 10; $year = 2005; $d = 14; for( $i = 0; $i < $d; $i++ ) if( checkdate( $month, $day+1, $year ) ) $day++; else if( checkdate( $month+1, ( $day = 1 ), $year ) ) $month++; else if( checkdate( ( $month = 1 ), $day, $year+1 ) ) $year++; greetings from germany, lars

« previous php.notes (#98605) next »