Handle dates without trailing zeros