You need to use the CTime::Format() function to get a string.