Wiki

Articles tagged with "timestamp"X
Displaying 1-2 of 2 result(s).

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

Created 3 months ago by SmitheshHow-tos0 comments – viewed 2,880 times – ( +2 ) – 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.

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

Created 7 months ago by Kartik VHow-tos10 comments – viewed 10,092 times – ( +29 ) – 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.