using input=date