Date And Time I18N With Language Picker Extension

I used language picker extension for i18n to my app. Now the menu and others are changed when selecting language from dropdown list. Now i would like to display time and date to my application. I don’t know the code for display date and time and how the date and time formats changed when selecting language from dropdown list along with menu changes.?

Hi Aneesh,

this an example to display date and time: echo


Yii::app()->dateFormatter->formatDateTime(time());