EM support for dates

- adv attrib min/max date are now handled through EM
- updated datepicker logic (because most is now handled in LEMval)
- partial fix 7224 (comparison of dates), no calculation though
cleanup