예제 #1
0
        public static bool getDueTomorrow(GTDItem item)
        {
            Task t = (Task)item;
            if (t.DueDate != null &&
                ((DateTimeOffset)t.DueDate).Day == DateTimeOffset.Now.AddDays(1).Day &&
                    ((DateTimeOffset)t.DueDate).Month == DateTimeOffset.Now.AddDays(1).Month &&
                    ((DateTimeOffset)t.DueDate).Year == DateTimeOffset.Now.AddDays(1).Year)
            {
                return true;
            }

            return false;
        }
예제 #2
0
        public static bool getDueToday(GTDItem item)
        {
            Task t = (Task)item;
            //if (t.DueDate == DateTime.Today)
            if (t.DueDate != null &&
                ((DateTimeOffset)t.DueDate).Day == DateTimeOffset.Now.Day &&
                    ((DateTimeOffset)t.DueDate).Month == DateTimeOffset.Now.Month &&
                    ((DateTimeOffset)t.DueDate).Year == DateTimeOffset.Now.Year)
            {
                return true;
            }

            return false;
        }