I have just started learning C++ and I want to try to work with dates now. How can I calculate number of days between two dates? I tried using TimeSpan and DateTime classes, but I can't get them to work..
I found this on other thread and something as simple as this would be great:
DateTime xmas = new DateTime(2009, 12, 25);
double daysUntilChristmas = xmas.Subtract(DateTime.Today).TotalDays;