Ejemplo n.º 1
0
        public static bool IsBirthdayToday(this User user)
        {
            User     user1 = user;
            DateTime now   = DateTime.Now;
            int      day   = now.Day;

            now = DateTime.Now;
            int month = now.Month;

            return(UserExtensions.IsBirthdayOnDate(user1, day, month));
        }
Ejemplo n.º 2
0
        public static bool IsBirthdayTomorrow(this User user)
        {
            DateTime dateTime = DateTime.Now.AddDays(1.0);

            return(UserExtensions.IsBirthdayOnDate(user, dateTime.Day, dateTime.Month));
        }