In case it helps, here is the code that I'm working with...
Code:
string GetFileCreationTime(char* pFileName)
{
string pFileCreationDate(11, '\0'); //buffer to hold the date
char* pUseless = new char[5]; //useless buffer needed for _itoa
WIN32_FILE_ATTRIBUTE_DATA wfad; //file attribute data structure
SYSTEMTIME st; //systemtime structure
ZeroMemory(&wfad, sizeof(WIN32_FILE_ATTRIBUTE_DATA)); //init memory
ZeroMemory(&st, sizeof(SYSTEMTIME)); //init memory
GetFileAttributesEx(pFileName, GetFileExInfoStandard, &wfad); //get file information
FileTimeToSystemTime(&wfad.ftCreationTime, &st); //convert to human readable time
pFileCreationDate = _itoa(st.wMonth, pUseless, 10);
pFileCreationDate.append("\\");
pFileCreationDate.append(_itoa(st.wDay, pUseless, 10));
pFileCreationDate.append("\\");
pFileCreationDate.append(_itoa(st.wYear, pUseless, 10));
delete [] pUseless;
return pFileCreationDate;
}