Determine last quarter
| From: | Rankin, Randy | Date: | Tue, 19 Mar 2002 14:57:10 +0000 |
| Subject: | Determine last quarter | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-17761@lists.php.net to get a copy of this message | ||
Hello all,
Does anyone know how I might determine the start date and end date of the
previous calendar quarter based on today's date. For example, today is
2002-03-19, so the previous quarter start date would return 2001-10-01 and
the previous quarter end date would return 2001-12-31. I am trying to
determine these dates for a report that generates previous quarter sales
based on today (whatever 'today' might be). Hope that's clear.
Thanks in advance,
Randy Rankin