Added hasStartDate, hasEndDate to DatePair

Added hasStartDate and hasEndDate methods, refactored and remove unused
import by all classes