Hello Community, I am using below code in my view to generate start date and end date. My view is showing start and end date perfectly but without seconds value to select.
Can you please suggest something to display and chose seconds as well? <?php echo $this->Form->create(array('controller' => 'users', 'action' => 'view')); echo $this->Form->input('Start Date/Time', array( 'type' => 'datetime', 'dateFormat' => 'DMY', 'minYear' => date('Y') - 1, 'maxYear' => date('Y'), 'timeFormat' => '24', 'selected' => date('Y-m-d 0:00:s'), 'attributes' => array(), 'empty' => FALSE ) ); echo $this->Form->input('End Date/Time', array( 'type' => 'datetime', 'dateFormat' => 'DMY', 'minYear' => date('Y') - 1, 'maxYear' => date('Y'), 'timeFormat' => '24', //'selected' => null, 'selected' => date('Y-m-d H:i:s'), 'attributes' => array(), 'empty' => FALSE ) ); echo $this->Form->end('Search'); ?> Regards Tapan Thapa India -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php