added support for tasks that have no to or from date