Added method clear to cleanUp date and input value