package seedu.address.logic.commands;

import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.task.Datetime;

//@@author A0143884W
/**
 * Populate the list of tasks happening on the selected DATE 
 */
public class ViewCommand extends Command {

    public static final String COMMAND_WORD = "view";

    public static final String MESSAGE_USAGE = COMMAND_WORD + ": View the list of tasks happening on the selected DATE \n"
            + "Parameters: DATE \n"
            + "Example: " + COMMAND_WORD + " today";

    private final Datetime datetime;

    public ViewCommand(String date) throws IllegalValueException {
		this.datetime = new Datetime(date);
    }

    @Override
    public CommandResult execute() {
        model.updateFilteredTaskListByDate(datetime.getStart());
        return new CommandResult(getMessageForPersonListShownSummary(model.getFilteredDatedTaskList().size()+model.getFilteredUndatedTaskList().size()));
    }
}

@@ -840,16 +840,51 @@
 dResult(
+datetime.getDateString() + %22 : %22 + 
 getMessa
@@ -954,50 +954,8 @@
 ze()
-+model.getFilteredUndatedTaskList().size()
 ));%0A

edit ViewCommand CommandResult message