package seedu.ezdo.model.todo;


import seedu.ezdo.commons.exceptions.IllegalValueException;


/**
 * Represents the start date of a todo.
 */
public class StartDate {

    public static final String MESSAGE_STARTDATE_CONSTRAINTS =
            "Start dates should be in the format DD/MM/YYYY, and it should not be blank";

    /*
     * The first character of the address must not be a whitespace,
     * otherwise " " (a blank string) becomes a valid input.
     */
//    public static final String STARTDATE_VALIDATION_REGEX = "^\\d\\d\\/\\d\\d\\/\\d\\d\\d\\d$";
    public static final String STARTDATE_VALIDATION_REGEX = ".+";

    public final String value;

    /**
     * Validates given start date.
     *
     * @throws IllegalValueException if given start date string is invalid.
     */
    public StartDate(String startDate) throws IllegalValueException {
        assert startDate != null;
        if (!isValidStartDate(startDate)) {
            throw new IllegalValueException(MESSAGE_STARTDATE_CONSTRAINTS);
        }
        this.value = startDate;
    }

    /**
     * Returns true if a given string is a valid task start date.
     */
    public static boolean isValidStartDate(String test) {
        return test.matches(STARTDATE_VALIDATION_REGEX);
    }

    @Override
    public String toString() {
        return value;
    }

    @Override
    public boolean equals(Object other) {
        return other == this // short circuit if same object
                || (other instanceof StartDate // instanceof handles nulls
                && this.value.equals(((StartDate) other).value)); // state check
    }

    @Override
    public int hashCode() {
        return value.hashCode();
    }

}

@@ -280,12 +280,12 @@
 t DD
-/MM/
+-MM-
 YYYY
@@ -324,309 +324,91 @@
     
-/*%0A     * The first character of the address must not be a whitespace,%0A     * otherwise %22 %22 (a blank string) becomes a valid input.%0A     */%0A//    public static final String STARTDATE_VALIDATION_REGEX = %22%5E%5C%5Cd%5C%5Cd%5C%5C/%5C%5Cd%5C%5Cd%5C%5C/%5C%5Cd%5C%5Cd%5C%5Cd%5C%5Cd$%22;%0A    public static final String STARTDATE_VALIDATION_REGEX = %22.+
+public static final String STARTDATE_VALIDATION_REGEX = %22%5E%5C%5Cd%7B1,2%7D-%5C%5Cd%7B1,2%7D-%5C%5Cd%7B4%7D$
 %22;%0A%0A

Update validation regex for StartDate class