RE: [PHP] Fiscal Years and Quarters
| From: | admin at buskirkgraphics dot com | Date: | Wed, 20 Oct 2010 03:47:25 +0000 |
| Subject: | RE: [PHP] Fiscal Years and Quarters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308875@lists.php.net to get a copy of this message | ||
Is there any way to get rid of, whatever wet behind the ears person whom has
this spam return for every post.
mytrash@mail.ua
I get 3 and 4 of these for every reply, I am sure anyone who is posting to
the list gets the same emails.
-----Original Message-----
From: Don Wieland [mailto:donw@pointmade.net]
Sent: Tuesday, October 19, 2010 7:12 PM
To: php-general@lists.php.net
Subject: [PHP] Fiscal Years and Quarters
Hello,
I have a preference field called "Fiscal_Year_Start_Month" which has
the Month Names as options.
Based on this value, I need to calculate the following date in UNIX:
Current_1st_Quarter_Start_Date
Current_1st_Quarter_End_Date
Current_2nd_Quarter_Start_Date
Current_2nd_Quarter_End_Date
Current_3rd_Quarter_Start_Date
Current_3rd_Quarter_End_Date
Current_4th_Quarter_Start_Date
Current_4th_Quarter_End_Date
Last_1st_Quarter_Start_Date
Last_1st_Quarter_End_Date
Last_2nd_Quarter_Start_Date
Last_2nd_Quarter_End_Date
Last_3rd_Quarter_Start_Date
Last_3rd_Quarter_End_Date
Last_4th_Quarter_Start_Date
Last_4th_Quarter_End_Date
Next_1st_Quarter_Start_Date
Next_1st_Quarter_End_Date
Next_2nd_Quarter_Start_Date
Next_2nd_Quarter_End_Date
Next_3rd_Quarter_Start_Date
Next_3rd_Quarter_End_Date
Next_4th_Quarter_Start_Date
Next_4th_Quarter_End_Date
Then based on TODAY'S date
Current_Fiscal_Quarter - result will be 1, 2, 3,or 4
Don
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php