Handle value of input[date] better.