C Program To Print The System Date

/* Program To Print The System Date

#include<conio.h>

#include<stdio.h>

#include<dos.h>

int main()
{

struct date d;

getdate(&d);

printf(“Current system date –> %d / %d / %d”, d.da_day, d.da_mon, d.da_year);

getch();

return 0;

}

OUTPUT:

Current system date –> 8/10/2013

Mohit Arora
Follow me