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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -