如何根据给定的日期在日历中搜索日期 [英] How to search the calender for a date based on the given day

查看:235
本文介绍了如何根据给定的日期在日历中搜索日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我将非常感谢你对这一方面的帮助。

我正在努力寻找搜索日历的算法并得出多少可以说 - 从5月8日星期五是从1900年到2014年。

你会发现1987年5月8日是星期五。等等。


我会非常感谢任何想法。谢谢。

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.

推荐答案


试试这个

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





查看此链接



http://msdn.microsoft.com/en-us/library/bb762911(v = vs.110).ASPX? CS-保存琅= 1和CS-LANG = CSHARP#共de-snippet-1 [ ^ ]


这篇关于如何根据给定的日期在日历中搜索日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆