piklist('field' ,array(
'type' => 'group'
,'label' => 'Dates (From - To)'
,'fields' => array(
array(
'type' => 'datepicker'
,'field' => 'date_from'
,'label' => 'Date: (from)'
,'options' => array(
'dateFormat' => 'M d, yy'
,'changeYear' => true
)
,'attributes' => array(
'class' => array('date')
,'size' => 12
)
,'columns' => 6
,'value' => date('M d, Y')
)
,array(
'type' => 'datepicker'
,'field' => 'date_to'
,'label' => 'Date: (to)'
,'options' => array(
'dateFormat' => 'M d, yy'
,'changeYear' => true
)
,'attributes' => array(
'class' => array('date')
,'size' => 12
)
,'columns' => 6
,'value' => date('M d, Y')
)
)
));
Would be my best guess of how to do it quickly.
Marcus