date options

views/index.ctp


<?php echo $form->input('neesen_ognoo', array( 'label' => 'Label' 
                                    , 'dateFormat' => 'DMY' 
                                    , 'minYear' => date('Y') - 2 
                                    , 'maxYear' => date('Y') ));?> 

output form is

> 2009-january-29

i want to

> 2009-01-29

dateFormat - DMY YMD there is any other options

Please some help me

Asked by kani, on 22/12/09

1 Answer

‘monthNames’ => false

in 2nd parameter of input().


<?php echo $form->input('neesen_ognoo', array( 'label' => 'Label' 
                                    , 'dateFormat' => 'DMY' 
                                    , 'monthNames' => false 
                                    , 'minYear' => date('Y') - 2 
                                    , 'maxYear' => date('Y') ));?> 

Answered by Ichikawayon 22/12/09

Tnx

kani - on 22/12/09

<< comments | comments >>
<< previous next >>

Tagged with

Rating

0

Viewed

480 times

Last Activity

on 22/12/09