src/main/java/seedu/address/logic/commands/AddCommand.java
/**
     * Checks if the toAdd date is before the starting date
     */
Checks if the toAdd date is before the starting date
Checks if the toAdd date is before the starting date
public boolean isBefore(Date toAdd, Date start) {
        LocalDate add = LocalDate.parse(toAdd.value);
        LocalDate compareTo = LocalDate.parse(start.value);
        return add.isBefore(compareTo);
    }
public boolean isBefore ( Date toAdd , Date start ) { LocalDate add = LocalDate . parse ( toAdd . value ) ; LocalDate compareTo = LocalDate . parse ( start . value ) ; return add . isBefore ( compareTo ) ; }
Checks if the toAdd date is before the starting date
Checks if the toAdd date is before the starting date