Fix warning on CBDateFromDateString function