Friday 8 November 2013

c program to get date from your computer

#include<stdio.h>
#include<conio.h>
#include<dos.h>

main()
{
struct date d;

getdate(&d);

   printf("Current system date is %d/%d/%d",d.da_day,d.da_mon,d.da_year);
   getch();
return 0;
}

No comments:

Post a Comment