I need to show the time and date in a C program. I must do this inside the program. I know in c++ it was __TIME__ and __DATE__ . But this does not work in C I think it has something to do with the printf statement. Does anyone know how to do this?