The return type for your function is string, so you need to return a single string.
Your functions return type is string and you've already built a string called 'date' in your code, which contains the date..
All you need to do is get rid of the three return statements and return the date variable instead.
NOTE: A function can only return one value, so the only thing this would return (if this code even compiles!) is time.wday. As soon as the function reaches the first return, it will return the first value, the other two will never be reached!
As mentioned, what you need to do is return date instead..
i.e.
return date; Hope that clears things up for you!
Cheers for now,
Jas.
p.s. the bit of code where you're building the date string could be written like this:
// attempt to put date into a string
std::string date = time.wDay + "/" + time.wMonth + "/" + time.wYear;
Which is a little more efficient. (I don't mean perfomance-wise, but in the amount of typing required..i.e. one line of code instead of six!)