WTF: DateTime.AddDays() is not working as expected

by jask2002 1. June 2012 23:36
Working with following code on DateTime AddDays operation I found end result is not the addition of days!!

int increment = 5;
DateTime now = DateTime.Now; //Current Date
now.AddDays(increment); //Increment by 5 days
[More]

PayPal — The safer, easier way to pay online. Has this post helped you? Saved you? If you'd like to show your appreciation. Please buy me a coffee or make a small contribution toward blog's maintenance(to keep it Ads free )

Tags: ,

C# | .Net | DateTime

About me

Hi there,

My name is  Jas and I'm currently working with Microsoft IIS/ASP.Net Escalation services.

Tag cloud

Month List

RecentComments

Comment RSS
 

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.