Consolidates consecutive dates