package seedu.address.model.task;

//@@author A0146123R
/**
 * Represents a Task's date
 * It can be deadline for tasks or event date for events.
 */
public interface Date{
    
   public static final String DATE_VALIDATION_REGEX = "^[0-3]?[0-9].[0-1]?[0-9].([0-9]{4})(-[0-2]?[0-9]?)?";
    // EXAMPLE = "15.10.2016-14"

    String getValue();
    
    String toString();
  

    int hashCode();
    
    default boolean isEmptyDate() {
        return getValue().equals("");
    }

}
@@ -238,17 +238,19 @@
 3%5D?%5B0-9%5D
-.
+%5B.%5D
 %5B0-1%5D?%5B0
@@ -252,17 +252,19 @@
 1%5D?%5B0-9%5D
-.
+%5B.%5D
 (%5B0-9%5D%7B4

Fix DATE_VALIDATION_REGEX