Re: Date Calculation Help
- From: oj.lists@xxxxxx (Oliver Jato)
- Date: Sat, 30 Jun 2007 17:38:23 +0200
revDAVE wrote:
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
You could do it like this: floor(($month-1)/3)+1;
.
- References:
- Date Calculation Help
- From: revDAVE
- Date Calculation Help
- Prev by Date: MySQL and aes_crypt
- Next by Date: str_replace new line
- Previous by thread: Date Calculation Help
- Next by thread: Re: [PHP] Date Calculation Help
- Index(es):