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

后端 未结 11 2352
你的背包
你的背包 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:58

    You cant. You need at least the day on which the 1st week starts (or when the week starts), to get an accurate answer.

提交回复
热议问题