improvements for field date and datepicker