removed unnecessary datetime converter, set input focus with javascript