Date input problem solved