how to change a string?

Whats a simple way to change a date around in a string

1
2
instead of 7/1/03  the user types in the date so this has to be a fix for any type of input
how do i make the string  07-01-2003
If a user inputs a date and you want to change it, you need to know what it originally looks like and then change its contents using string functions:

Read up on the string functions:
http://www.cplusplus.com/reference/string/string/
Topic archived. No new replies allowed.