Information

Username: rtzzzzzz
Member since: 15 Feb 2015
Last login: 15 Feb 2015
Status: Active

Activity

Where Created Comments
Algorithms 0 3
Forum Topics 0 0
Jobs 0 0

Last Algorithm Comments

RT
rtzzzzzz · 9 years ago

Replace : 

this line            DateTime yesterday = DateTime.Now.AddDays(-1);

with all those lines

           DateTime yesterday;
            if (Server.Time.DayOfWeek == DayOfWeek.Monday)
                yesterday = DateTime.Now.AddDays(-3);
            else
                yesterday = DateTime.Now.AddDays(-1);

RT
rtzzzzzz · 9 years ago

Replace : 

 

            DateTime yesterday = DateTime.Now.AddDays(-1);

            DateTime yesterday;
            if (Server.Time.DayOfWeek == DayOfWeek.Monday)
                yesterday = DateTime.Now.AddDays(-3);
            else
                yesterday = DateTime.Now.AddDays(-1);