Log in

View Full Version : Defining today


Lionel
05-06-2005, 12:31 AM
How do you get today in php? I tried using $todaystamp but no good.

I've got a special calendar where I need to display today's events only (untill midnight).

in calendar.php, right before eval ('$caldaybits .= "' . fetch_template('calendar_showeventsbit') . '";');

I put:

if (!$todaystamp and $calendarid==4){
$eventinfo['event']="<div align=\"center\">You can only view today's events</div>";
}


That works too well. Even today is not displayed!!!

cinq
05-06-2005, 12:48 AM
erm date() ?

Lionel
05-06-2005, 01:46 AM
it gets a little more complicated than I originally thought; I have to compare today and event date