Add the task datetime check