Date

Light Poster
16Mar2007,18:01   #1
Banda's Avatar
Hi
My timetable have 5 periods on my school year. How I can check what is currently period?
Team Leader
16Mar2007,18:03   #2
pradeep's Avatar
Do you have some idea about going about the problem?? If you have we can elaborate/improve on your idea.
Light Poster
16Mar2007,18:12   #3
Banda's Avatar
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?
Light Poster
16Mar2007,18:44   #4
Banda's Avatar
Now i know how to do.
Code:
date("ymd")
that is answer to this problem, or I think so.