C Programming Tutorial

 
 
 
 

Image

#include <stdio.h>
#include <time.h>

void main()
{
time_t t;
time(&t);

clrscr();


   printf(\"Today\'s date and time : %s\",ctime(&t));
getch();
}

 
 
Didn't find what you were looking for? Find more on Program to display current date and time