Makes input date dynamic