Wiki articles tagged with "datetime"

Showing 1-3 of 3 items.

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

Created 10 years ago by Smithesh, updated 9 years ago by Smithesh.

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.

2 0
3 followers
Viewed: 22 512 times
Version: 1.1
Category: How-tos

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

Created 10 years ago by Kartik V, updated 10 years ago by Kartik V.

The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

1 0
37 followers
Viewed: 21 687 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by Kartik V, updated 10 years ago by Kartik V.

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.

0 0
51 followers
Viewed: 177 917 times
Version: 2.0
Category: How-tos