ch.8, p.222, custom DateInput component