c# - DateTime with same amounts of days for each month -


is there easy way or ready go class having datetime every month has same amount of days? i'm writing calculation tool resource planning , use standard month, no leap years etc.

update: ok maybe should have mentioned little big detail - tried going 365/12 = 30,42days/month. can't see happening run trouble when example trying days ticks (division , 1.999999999 etc).

in financial markets, there lot of ways of counting numbers of days in year, number of days in month, etc. particular way called "day count convention", see e.g. the wikipedia article on day count conventions. 1 type of day count conventions tries you're talking about, namely have 30 days in each month. these day count conventions called 30/360, , can see wikipedia page there several variations on this. these conventions straightforward implement, suggestion choose 1 of these day count conventions , code yourself.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -