Get Current Time

hi guys how get current time & date using session or something .i need get current time & date (system time)

echo date('Y-m-d H:i:s');

please see it…


I am getting error when I use this. is there anyother way that yii gets date

There’s a typo in the posted code, the function name should be date, not data.