public static void SetDueDateTime(string listId, string taskSeriesId, string taskId, string due) { try { if (String.IsNullOrEmpty(due)) { rtm.TasksSetDueDate(timeline, listId, taskSeriesId, taskId); } else { rtm.TasksSetDueDateParse(timeline, listId, taskSeriesId, taskId, due); } } catch (RtmException e) { Log <RTM> .Debug(e.Message); return; } if (String.IsNullOrEmpty(due)) { FinalizeAction(AddinManager.CurrentLocalizer.GetString("Due Date/Time Unset"), AddinManager.CurrentLocalizer.GetString("The due date/time of the selected task in your Remember The Milk task list has been unset.")); } else { FinalizeAction(AddinManager.CurrentLocalizer.GetString("Due Date/Time Changed"), AddinManager.CurrentLocalizer.GetString("The due date/time of the selected task in your Remember The Milk task list has been changed.")); } }