Posted by cangeceiro on May 7, 2009 at 8:40pm
Jump to:
| Project: | Javascript Tools |
| Version: | 5.x-1.2 |
| Component: | Jscalendar |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
i want complete set of procedures to include date picker in my drupal 6 project any one help me ! :)
Thanks in Advance