0
\$\begingroup\$

This question already has an answer here:

Knowing a given date (11/28/1973), and supposing I will die when I'm 99, what are the years when my birthday will be a thursday so that I will be able to party all week-end?

\$\endgroup\$

marked as duplicate by Peter Taylor, Johannes Kuhn, Justin, Chris Jester-Young Dec 30 '13 at 2:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • \$\begingroup\$ The question as it stands will get only "print xx" answers, since there is no input on which the output is dependant on. \$\endgroup\$ – shiona Dec 29 '13 at 22:17
  • \$\begingroup\$ This adds nothing interesting to existing questions such as this one. \$\endgroup\$ – Peter Taylor Dec 29 '13 at 22:28
0
\$\begingroup\$

js

var y = 1973 + 99;
while(y-- > 1973) 4!=new Date('11/23/'+y).getDay()||console.log(y);
\$\endgroup\$
-1
\$\begingroup\$

Something like this:

c#

        var birthdate = new DateTime(1973,11,28);
        for (int i = 0; i <= 99; i++)
        {
            var date = birthdate.AddYears(i);
            if (date.DayOfWeek.Equals(DayOfWeek.Thursday))
            {
                Console.WriteLine(date.Year);
            }
        }
\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.