Okay say I have a string with 6 characters in it. What can I do to copy the first 2 characters into one string the next 2 into another and the last 2 into a third?
So I have
string date = 070805;
I want to split 2 characters into these
string month;
string year;
string day;
I was trying to use:
year = date.substr(0,1);
month = date.substr(2,3);
day = date.substr(4,5);