note 46034 added to function.date

From: Date: Mon, 27 Sep 2004 19:11:00 +0000
Subject: note 46034 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-77445@lists.php.net to get a copy of this message
To find the first month (int) of the current quarter use this: <?php $intQuarterFirstMonth = (floor((date('m') - 1) / 3) + 1); echo $intQuarterFirstMonth; ?> For any given month: <?php $intGivenMonth = 2; $intQuarterFirstMonth = (floor(($intGivenMonth - 1) / 3) + 1); echo $intQuarterFirstMonth; ?> ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46034 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46034&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46034&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77445) next »