Dates in C++
Posted on 2013-11-18
I'm looking at writing a small program that needs a user to input a date e.g.
cin >> myDate;
which will be in the format 12/11/2013 (dd/mm/YY)
What is the best way to do this in C++ (cross platform).
Finally, if two dates are input, I need to work out the number of days between the two dates.
I've done the usual googling and it all seems fairly complex! What I can't understand that there isn't a standard library that would do this. Using Python, for example, is a breeze! Why is it so complicated in C++?
Am I missing something?