$q = ceil( month / 4 );

--
/Thunis

The ships hung in the sky in much the same way that bricks don't.
  --The Hitchikers Guide to the Galaxy

revDAVE skrev:
I have segmented a year into four quarters (3 months each)

nowdate = the month of the chosen date (ex: 5-30-07 = month 5)

Q: What is the best way to calculate which quarter  (1-2-3 or 4) the chosen
date falls on?

Result - Ex: 5-30-07 = month 5 and should fall in quarter 2



--
Thanks - RevDave
[EMAIL PROTECTED]
[db-lists]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to