如何根据周数获取一周的开始日期? [英] How to get Start Date of the week based on Week Number?

查看:90
本文介绍了如何根据周数获取一周的开始日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家


任何人都可以帮我根据DateTime中的周数来获取开始日期和结束日期吗?


它需要适用于所有FirstDayOfWeek和CalendarWeekRule。




MSDN ALERTS

解决方案

请参阅以下答案


https://social.msdn.microsoft.com/Forums/en- US / 790e1c15-7002-47e1-a53f-4241cf4af615 /如何获得第一个和最后一个提供周的日期?forum = winforms


还有一个名为NodaTime的很棒的图书馆,这里有
a解决方案


Hi Experts

Can any one help me to get the Start and End date based on Week Number in DateTime?

It needs to applicable for all FirstDayOfWeek and CalendarWeekRule.


MSDN ALERTS

解决方案

See the following answer

https://social.msdn.microsoft.com/Forums/en-US/790e1c15-7002-47e1-a53f-4241cf4af615/how-to-get-first-and-last-date-of-provided-week?forum=winforms

There is also a great library called NodaTime, here is a solution.


这篇关于如何根据周数获取一周的开始日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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