Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone. I will be very grateful for your help on this one.
I am trying to find the algorithm to search the calender and derive how many lets say - 8th Mays were Fridays from 1900 - 2014.
You will find out that 8th May, 1987, for instance was a Friday. etc.

I will be very grateful for any ideas. Thank you.
Posted
Updated 18-Aug-14 14:56pm
v2

1 solution

Hi Try this
VB
Module Example
   Public Sub Main()
      Dim dateValue As Date = #6/11/2008#
      Console.WriteLine(dateValue.ToString("ddd"))    
   End Sub 
End Module 


Check this link

http://msdn.microsoft.com/en-us/library/bb762911(v=vs.110).aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1[^]
 
Share this answer
 
Comments
SamuelDexter 18-Aug-14 21:01pm    
Hello Balav4. Thanx for the attempt, But I must say its rather the other way round.
I am not trying to find the day which is obviously very easy to do. I am trying to find the how many lets say - 8th Mays were Fridays from 1900 - 2014.
You will find that 8th May, 1987, for instance was a Friday. 8th May, 1981 was also a Friday.
Hope you get my point.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900