Parse date values to integers to avoid error parsing date