$element = $form->addElement('datepicker', $field_name, $caption [, array $options]);
eval_js($element->getElementJs());
The 'eval_js' part needs to be done only once per page (not for every datepicker element).
In options you can specify, among regular QF options, date format, for example array $options could look like this: array('format'=>'%d-%m-%y').
Formatting is basicly the same as in function
date in php, only a little cropped (for php's
date see
http://pl.php.net/manual/pl/function.date.php).