Well, you probably don't want to send the date in string format. Send it/store it as a time_t (unsigned int??). But whatever, use ctime() or similar (you should browse time.h, too...). Remember, that ctime() returns a static buffer that will be overwritten in subsequent calls - be sure to copy the data immediately, and not simply store pointers to the returned strings...