second date input fix