Checks to see which of a given set of dates is earliest -- C program