Date

Banda's Avatar, Join Date: Mar 2007
Light Poster
Hi
My timetable have 5 periods on my school year. How I can check what is currently period?
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Do you have some idea about going about the problem?? If you have we can elaborate/improve on your idea.
0
Banda's Avatar, Join Date: Mar 2007
Light Poster
Code:
$perioidstart = "1.2.2007";
$perioidend = "3.22.2007";
$today = "date("d.m.y");
if ($today > $perioidstart) {
  if ($today < $perioidend) {
     $period = 1;
   }
}
But that didn't work. Is there is something other way to do this?
0
Banda's Avatar, Join Date: Mar 2007
Light Poster
Now i know how to do.
Code:
date("ymd")
that is answer to this problem, or I think so.