Fixed bug. Now, dateArr and timeArr are emptying after pressing Edit and Add todo.