Converting strings to dates

Does someone have a quick code for converting strings to Dates in C++.

Example: What is the date:
User response: 12/05/14

Can someone tell me a way I can code this to recognize it as a date, and make it so that the date is sortable? Not referring to the system date, but a user input date.

Any help will be appreciated.
Can someone tell me a way I can code this to recognize it as a date, and make it so that the date is sortable?

you could create a class for date and create a constructor from string and overload operators <, >, <=, >=, ==, !=
Last edited on
Topic archived. No new replies allowed.