src/main/java/seedu/address/logic/commands/AddCommand.java
/**
     * Checks if the toAdd date is after the current date
     */
Checks if the toAdd date is after the current date
Checks if the toAdd date is after the current date
public boolean isAfter(Date toAdd) {
        LocalDate add = LocalDate.parse(toAdd.value);
        LocalDate compareTo = LocalDate.now();
        return add.isAfter(compareTo);
    }
public boolean isAfter ( Date toAdd ) { LocalDate add = LocalDate . parse ( toAdd . value ) ; LocalDate compareTo = LocalDate . now ( ) ; return add . isAfter ( compareTo ) ; }
Checks if the toAdd date is after the current date
Checks if the toAdd date is after the current date