Added initialization of date field input and delegated createOnEnter function upon keypress of the date field