Wiki articles tagged with "date"

Showing 1-6 of 6 items.

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

Created 10 years ago by Smithesh Smithesh, updated 9 years ago by Smithesh 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: 23 832 times
Version: 1.1
Category: How-tos

Date Picker by examples

Created 11 years ago by Interboy Interboy, updated 10 years ago by Alfa Adhitya Alfa Adhitya.

CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

6 0
7 followers
Viewed: 143 451 times
Version: 1.1
Category: How-tos

CGridView Date Range Without Cookies or Session (External Filtering)

Created 12 years ago by ezekielnoob ezekielnoob, updated 10 years ago by ezekielnoob ezekielnoob.

Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below: grid

3 0
8 followers
Viewed: 22 534 times
Version: 1.1
Category: How-tos

Adding a date range search for CGridView the easy way

Created 12 years ago by mikewalen mikewalen, updated 11 years ago by mikewalen mikewalen.
  1. Create an Active Record Behavior that builds the criteria for the search() method and attach it to your model
  2. Modify the search() method of the model to merge the behavior's criteria in with the rest of the searchable attributes
  3. Modify the _search form view to add the date range inputs
6 0
11 followers
Viewed: 43 780 times
Version: 1.1
Category: Tips

Local time zones and locales

Created 14 years ago by Russell England Russell England, updated 14 years ago by Russell England Russell England.

The sql 'set time_zone' ensures that all dates retrieved are in UTC time. If your MySql server has the time zone names installed then use 'UTC' instead of '+00:00'.

Components

Copy the code at the end of this wiki for LocalTime.php and DefaultDateTimeParser.php int...

13 2
23 followers
Viewed: 102 894 times
Version: 1.1
Category: How-tos

Using International Dates

Created 14 years ago by Russell England Russell England, updated 12 years ago by nkd nkd.

So here is my complete solution - note that I'm using the 'short' date format throughout.

15 0
24 followers
Viewed: 51 398 times
Version: 1.1
Category: How-tos