Best Way Handling Datetime Format

Hello everyone,

I am new to forum. I am working with Yii for about a half year, and only thing I can say that is the best framework that I used.

I found many topics that is related to datetime format handling. But nobody told what is the best way for Yii to handle this format. I know there is a lot of options, but can anyone tell me what is the best option for whole process handling a datetime format.

But please tell me the whole process - display on _form view, storning it in database (in controller action), search it (model’s search method).

Thanks in advance.