I am trying to make a custom form that has a text field for a date, I'm using the jscalendar pop up which is working quite well. What im having a problem with is getting the date format correct in the text field input.
when i select a date it puts it in as "2009-05-12 16:37:13" but I want it to be in the format of "05/12/2009".
here is the code i am using for the form field
$form['#jscalendar_ifFormat'] = '%m/%d/%Y';
$form['filter2-date'] = array(
'#type' => 'textfield',
'#attributes' => array('class' => 'jscalendar'),
'#size' => 5,
what am i doing wrong here?
Comments
Comment #1
infor_sudhakar commentedi want complete set of procedures to include date picker in my drupal 6 project any one help me ! :)
Thanks in Advance