crude date min/max validation

works only with yyyy-mm-dd
problem with empty dates?
works again, moved to the right place
tracevar
change tracevar
work with mindate/maxdate withoput {}