more fixes for date input