Convert date strings to integers