Wiki

Articles tagged with "time", sorted by date (updated)X
Displaying 1-6 of 6 result(s).

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

Updated about a year ago by SmitheshHow-tos1 comment – viewed 7,505 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.

Date Picker by examples

Updated about a year ago by Alfa AdhityaHow-tos6 comments – viewed 87,462 times – ( +10 / -2 ) – version 1.1
CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

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

Updated about a year ago by Kartik VHow-tos12 comments – viewed 81,187 times – ( +39 ) – 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.

Model validation for field ranges using yii2-field-range extension

Updated 2 years ago by Kartik VTips0 comments – viewed 11,482 times – ( +39 ) – version 2.0
The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

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

Updated 2 years ago by Kartik VHow-tos0 comments – viewed 7,941 times – ( +35 ) – version 2.0
The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

Local time zones and locales

Updated 5 years ago by Russell EnglandHow-tos9 comments – viewed 66,824 times – ( +14 / -2 ) – version 1.1
Following on from international dates, I also wanted times in the local timezone and format. This was a little more tricky but I think I've got a solution. This is only really appropriate if you have an international app.