I created a DateTime with some values started in the constructor, but when I add a TimeSpan with some values, it does not add together with the date.
I'm using the DateTime method to add a TimeSpan, but it's not working because the time is set to zero, is there another way to do it? Or what am I doing wrong?
static void Main(string[] args)
{
var timeSpan = new TimeSpan(5,5,0);
var data = new DateTime(2017,8,5);
data.Add(timeSpan);
Console.WriteLine(data);
Console.ReadKey();
}