Articles tagged with "datetime"X
Displaying 1-3 of 3 result(s).

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Created about a year ago by SmitheshHow-tos1 comment – viewed 5,431 times – ( +3 ) – version 1.1
This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

Using the yii2-datecontrol extension along with yii2-detail-view widget

Created about a year ago by Kartik VHow-tos0 comments – viewed 5,396 times – ( +35 ) – version 2.0
The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

Save and Display Date/Time Fields in different formats in Yii2

Created about a year ago by Kartik VHow-tos10 comments – viewed 44,045 times – ( +38 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.