onInputChange date fix for no-moment condition