Quote Originally Posted by THEARTOFWEB View Post
by the way, how can I change getDateTime() to return char[30] ?? I mean the return type...

thanks
For example:
Code:
 void getDateTime( char *buffer)
{
 time_t rawtime;
 struct tm * timeinfo;
 time(&rawtime);
 timeinfo = gmtime(&rawtime);

 strftime(buffer,30,"%a, %d %b %Y %X GMT",timeinfo);
}
Now you can:
Code:
char buffer[30];
getDateTime(buffer);