How to get the month depending on the week number in C# and .NET -
How can I get the month according to a specific number of weeks? For example, if a week number 2 returns, then month 1 (January) comes back?
Take the number and multiply it by 7. For example, if this week number is 12, multiply 12 to 7. This will indicate that how many days it is, it has been rounded in the nearest week.
30. For example, the number we received from the calculation was 84. 84 divided by 84 is 2.8
Use this number to find the month. 2.8 means that this is march. The number before the decimal point indicates months ago Always keep the numbers above, this will give you the current month.
Read more:
Comments
Post a Comment