I need to write files with the current date included in the name. Currently this is what I have tried:
time_t t = time(0);
struct tm * now = localtime(&t);
string date=now->tm_mday+'/'+(now->tm_mon+1)+'/'+(now->tm_year+1900);
Preferably I'd like to keep this method of getting the date as I have used it earlier on in my program.