String manipulation

Hi I got a simple question which Im having an hard time getting to work.

Lets say I have a string in a date formate xx/mm/yy and I want to transform it to xxyymm. Is there a simple way to to this?

Thanks

1
2
3
4
  string date = "xx/mm/yy"
  ...
  cout <<date;
  output: xxyymm
Topic archived. No new replies allowed.