some html output code style fixes
added option to change dateformat in event new/edit form