matik
Posts: 57
|
| Posted: 05/14/2006, 2:45 PM |
|
Hi,
I have tried this code in before show calendar events:
$Format = array("yyyy", "-", "mm", "-", "dd");
$Date = CCParseDate("2007-01-01", $Format);
$Calendar1->CurrentDate = $Date;
But its change only calendar navigator bar title. Month date and day number remain the same (today date and month).
What I am doing wrong??
|
 |
 |
Last Hero
|
| Posted: 05/15/2006, 12:35 AM |
|
1. Use PageAfterInitialize event
2. Use $Calendar->SetNow($date)
|
|
|
 |
matik
Posts: 57
|
| Posted: 05/15/2006, 12:54 AM |
|
Calendar1 is name of my calendar tabble so I have change name to:
$Calendar1->SetNow($date);
and I get this:
Fatal error: Call to a member function on a non-object in c:\inetpub\wwwroot\datetest\date_events.php on line 243
|
 |
 |
|