Articles tagged with "date"X
Displaying 1-5 of 5 result(s).

Date Picker by examples

Created 6 months ago by InterboyHow-tos3 comments – viewed 23,991 times – ( +6 / -2 )
CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

CGridView Date Range Without Cookies or Session (External Filtering)

Created 8 months ago by ezekielnoobHow-tos5 comments – viewed 4,971 times – ( +3 )
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:

Adding a date range search for CGridView the easy way

Created about a year ago by mikewalenTips4 comments – viewed 12,985 times – ( +10 ) – version 1.1
After a lot of research, everything I found on adding date range searching to a CGridView advanced search form seemed to involve adding two new public variables (e.g. $date_from, $date_to), 'safe' rules for the new variables, and a rather chunky if/elseif/else check in the search() method. This probably isn't a hassle for most, but because many of the tables in my database contain two or three and sometimes four date columns (e.g. date_created, date_modified, date_deleted etc.), it meant I was having to add up to eight public variables, the corresponding safe rules, and modifying the search() criteria for each date attribute. So, I set about creating a better way and I thought I'd share my work with the community.

Local time zones and locales

Created 2 years ago by Russell EnglandHow-tos9 comments – viewed 45,161 times – ( +13 / -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.

Using International Dates

Created 2 years ago by Russell EnglandHow-tos4 comments – viewed 26,687 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post