Return to Snippet

Revision: 50756
at September 1, 2011 20:39 by resting


Initial Code
// Date options
    $day_fields = array(
            '01'=>'01', '02'=>'02', '03'=>'03', '04'=>'04', '05'=>'05', '06'=>'06', '07'=>'07', '08'=>'08', '09'=>'09', '10'=>'10',
            '11'=>'11', '12'=>'12', '13'=>'13', '14'=>'14',
            '15'=>'15', '16'=>'16', '17'=>'17', '18'=>'18', '19'=>'19', '20'=>'20', '21'=>'21', '22'=>'22', '23'=>'23',
            '24'=>'24', '25'=>'25', '26'=>'26', '27'=>'27', '28'=>'28', '29'=>'29', '30'=>'30', '31'=>'31'
        );
    $mth_fields = array(
            '01'=>'Jan', '02'=>'Feb', '03'=>'Mar', '04'=>'Apr', '05'=>'May', '06'=>'Jun', '07'=>'Jul', 
            '08'=>'Aug', '09'=>'Sep', '10'=>'Oct', '11'=>'Nov', '12'=>'Dec'
        );
    // Yr fields
    $key = date('Y');
    $yr_fields = array();
    for($i=0;$i<5;$i++)
    {
        $yr_fields[$key + $i] = $key + $i;
    }
    ?>

Initial URL

                                

Initial Description

                                

Initial Title
Day, Month, Year for CI

Initial Tags

                                

Initial Language
PHP