start of handling of dates in form