Hi All,
OK, I need a terrabyte of ram installed in my head to figure this one out completely.
We have teachers that sign up for free videos and I need to verify their signup dates and feedback dates based on a Fiscal calendar not a year calendar. (IE their fiscal is July 1 - June 30).
So far I tested if now is after or before July 1, (current year) but my logic fails on the test if its the next year but before the fiscal ends.
IE We are in our new current fiscal (July 1, 2007 - June 30, 2008).
Here is some tests I tried so you can see what I have done so far.
$year = date("Y");
//$NowUnix = mktime(0, 0, 0, date("m") , date("d"), date("Y"));
//echo '$NowUnix = '.$NowUnix.'<br />';
$now = date("m,d Y");
//echo 'Now is '.$now.'<br />';
$UnixNow = mktime(0,0,0,$now);
echo '$UnixNow = '.$UnixNow.'<br />';
$StartFiscal = mktime(0,0,0,7,1,$year);
if($UnixNow>=$StartFiscal) {
echo 'It is a new fiscal<br />';
$FiscalStart = mktime(0,0,0,7,1,$year);
} else {
echo 'The fiscal has not ended yet<br />';
}
I need to dynamically create a date range that runs from July1, to June 30 and resets each year. Then I can test their date stamps from the database and send them to the appropriate places.
Does that make sense?
Thanks in advance,
Don