note 34587 deleted from function.jddayofweek by didou

From: Date: Thu, 31 Jul 2003 14:22:24 +0000
Subject: note 34587 deleted from function.jddayofweek by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53085@lists.php.net to get a copy of this message
Note Submitter: mikael AT lirbank DOT com ---- To: b dot dominik at gmx dot net You need to compile with: --enable-calendar See: http://www.php.net/manual/en/ref.calendar.php To; Wilfried The calendar functions are based on julian day count. Which is probably not the calendar you use. This is how to do it: <?php $year='2003'; $month='03'; $day='28'; //convert to julian daycount $jd = gregoriantojd( $month, $day, $year); // get the week day $WeekDay = jddayofweek( $jd, 1); echo "The day is: ".$WeekDay; ?>

« previous php.notes (#53085) next »