c# - How to calculate financial year start and end dates from financial year's month end value? -


i have financial year's month end value 2.

how calculate financial year datetime startdate , datetime enddate value?

you can do:

datetime startdate = new datetime(datetime.today.year, 2, 1); // 1st feb year datetime enddate = new datetime(datetime.today.year+1, 2, 1).adddays(-1); // last day in january next year 

does solve problem?


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -