How to set CFormatter datetimeFormat?

Hello hello!

I was wondering how I should set the datetimeFormat property for CFormatter? I tried adding




'CFormatter'=>array(

	'datetimeFormat' => 'm/d/Y h:i:s A', 

),



to various parts of the config file, but no luck. I want it to use my custom format for the CDetailView and hopefully other places.

Thanks!

Ah, silly me, I found the answer in the docs (of course!).

It should be:




'components'=>array(

	'format'=>array(

		'datetimeFormat' => 'm/d/Y h:i:s A', 

	),

),



Just in case anyone else has this problem.