Closed (duplicate)
Project:
Date
Version:
6.x-2.4
Component:
Date Popup
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2009 at 08:40 UTC
Updated:
3 Oct 2009 at 10:13 UTC
Hi,
I am creating a form with date popup (see code below).
The form returned has the default date 01-01-2009.
Please can you help me to sort it?
Thanks a lot
$format = 'd-m-Y';
$date = 'now';
$form['data_partenza'] = array(
'#type' => 'date_popup',
'#title' => 'Data partenza',
'#default_value' => $date,
'#date_format' => $format,
'#date_label_position' => 'within',
'#date_timezone' => 'Europe/Rome',
'#date_increment' => 15,
'#date_year_range' => '0:+1',
);
Comments
Comment #1
carlogen commentedSorry I have forgotten there is already an bug report for this issue
http://drupal.org/node/509036
not fixed yet