code cleanup
Allow to set the date format inside form panels, fixes #124