Jump to content

PHP date calculation


johnsmith153

Recommended Posts

I need to display the current and next 3 quarters (and get the time() value)

 

so as now is December 2008 I want to display to the user the following text

 

Oct-Dec 2008 (and the time() value of Oct 1st)

Jan-Mar 2009 (and the time() value of Jan 1st 2009)

Apr-Jun 2009

Jul-Sep 2009

 

I just need the text and time() values, the rest is not a problem

 

This will be used for many years, so one day it will be Feb 2010 and I will need it to automatically show Jan-Mar 2010 onwards etc.

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/135865-php-date-calculation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.