L
L
LoonTiG2016-04-03 17:31:54
System administration
LoonTiG, 2016-04-03 17:31:54

How to fix the days of the week?

I have a program written in c#. There are lines in the source code:
DateTime dateTime = DateTime.Now;
Console.WriteLine((dateTime.DayOfYear == 94) && (dateTime.Year == 2016) && (dateTime.DayOfWeek == DayOfWeek.Friday) ? Program.GetFlag() : "Sorry, try it another day");
Day 94 is Sunday
Question - is it possible to change the day of the week on the computer and run program.GetFlag()
Ps There is no source file - and I can not change the code (There is only a compiled executable)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Alkhimenko, 2017-09-13
@AngryProgrammer001

If this is an online application, then nothing, but if it's a local application, then yes, just change the date

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question