datetime CDbExpression('date_format(NOW(),\'%Y%m%d%H%i%S\')'); timestamp new CDbExpression('LEFT(date_format(NOW(),\'%Y%m%d%H%i%S%f\'), 17)');