我有2个datepicker用于开始日期和结束日期 。 我怎样才能获得当月的第一天和最后一天 rdpStartDate.SelectedDate = DateTime.Now; rdpEndDate.SelectedDate = DateTime.Now;
如果我有两个约会,那么我会在几天内得到它们之间的区别像这篇文章 。 如何在以下视图中详细说明: 将天number of years,number of months and the rest in the number of days转换为( number of years,number of months and the rest in the number of days )
给定一个日期我如何添加一些天,但排除周末。 例如,给定2008年12月11日(星期三),并且在2008年11月19日(星期三)而不是2008年11月17日(星期一)增加5个。 我可以想到一个简单的解决方案,比如循环每天添加和检查是否是一个周末,但我想看看是否有更优雅的东西。 我也对任何F#解决方案感兴趣。
鉴于日期范围,我需要知道在该范围内有多少星期一(或星期二,星期三等)。 我目前在C#工作。