@@ -0,0 +1,918 @@
+package tars.model.task;%0A%0Aimport java.time.LocalDateTime;%0Aimport java.time.format.DateTimeFormatter;%0Aimport java.time.format.DateTimeParseException;%0A%0A/**%0A * Represents a Task's datetime in tars.%0A */%0Apublic class DateTime %7B%0A    public static final String MESSAGE_NAME_CONSTRAINTS = %22Task datetime should be spaces or alphanumeric characters%22;%0A%0A    private LocalDateTime dateTime;%0A%0A    /**%0A     * Validates given task datetime.%0A     *%0A     * @throws DateTimeParseException if given datetime string is invalid.%0A     */%0A    public DateTime(String dateTime) throws DateTimeParseException%7B%0A        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(%22dd-MM-yyyy HH:mm%22);%0A        this.dateTime = LocalDateTime.parse(dateTime, formatter);%0A    %7D%0A%0A    public LocalDateTime getDateTime() %7B%0A        return dateTime;%0A    %7D%0A%0A    public void setDateTime(LocalDateTime dateTime) %7B%0A        this.dateTime = dateTime;%0A    %7D%0A    %0A%7D%0A

Add new model DateTime