@@ -0,0 +1,1970 @@
+package seedu.taskitty.logic.commands;%0A%0Aimport java.text.DateFormat;%0Aimport java.text.SimpleDateFormat;%0Aimport java.time.LocalDate;%0Aimport java.util.Date;%0Aimport java.util.Set;%0A%0Aimport seedu.taskitty.model.task.TaskDate;%0A%0A/**%0A * Finds all events for the specified date, deadlines up to the specified date, and all todo tasks.%0A * If no date is specified, all events for today, all deadlines and todo tasks will be displayed.%0A */%0Apublic class ViewCommand extends Command %7B%0A%0A    public static final String COMMAND_WORD = %22view%22;%0A%0A    public static final String MESSAGE_USAGE = COMMAND_WORD + %22: Events for the specified date, deadlines up to the specified date, and all todo tasks are displayed.%22%0A            + %22and displays them as a list with index numbers.%5Cn%22%0A    %09%09+ %22if no date is entered, events for today, all deadline tasks and all todo tasks will be displayed.%22%0A            + %22Parameters: %5BDATE%5D %5Cn%22%0A            + %22Example: %22 + COMMAND_WORD + %22 16 Oct 2016 %5Cn%22%0A            + %22Note: if %5C%22view done%5C%22 or %5C%22viewdone%5C%22 is entered instead, the list of done tasks will be shown.%22;%0A%0A    private LocalDate date;%0A    private boolean hasDate;%0A%0A    public ViewCommand(String date) %7B%0A    %09assert date !=null;%0A        this.date = LocalDate.parse(date, TaskDate.DATE_FORMATTER);%0A        this.hasDate = true;%0A    %7D%0A    %0A    public ViewCommand() %7B%0A    %09this.date = createTaskDate();%0A    %09this.hasDate = false;%0A    %7D%0A%0A    private LocalDate createTaskDate() %7B%0A%09%09DateFormat df = new SimpleDateFormat(%22MM/dd/yyyy%22);%0A    %09Date dateobj = new Date();%0A    %09String date = df.format(dateobj);%0A    %09return LocalDate.parse(date, TaskDate.DATE_FORMATTER);%0A%09%7D%0A    %0A    @Override%0A    public CommandResult execute() %7B%0A        model.updateFilteredDateTaskList(date, hasDate);%0A        return new CommandResult(getMessageForTaskListShownSummary(model.getTaskList().size()));%0A    %7D%0A%0A    @Override%0A    public void saveStateIfNeeded(String commandText) %7B%0A        model.saveState(commandText);%0A    %7D%0A%0A%7D%0A

Add ViewCommand class