fix for pressing enter after, manually entering the date