How do I get the month number from the year and week number in c#?

后端 未结 11 2342
你的背包
你的背包 2020-12-17 18:40

As the title says, given the year and the week number, how do I get the month number?

edit: if a week crosses two months, I want the month the first day of the week

11条回答
  •  情话喂你
    2020-12-17 18:48

    I think you're assuming that a "week" is any group of 7 sequential days. It isn't. Given Year(2008), Week(5), you could be in either January or Febuary, depending on when your "week" starts.

提交回复
热议问题