Add getCommonDate and getEarliestDate methods