C program to print date

#include <stdio.h>
#include <conio.h>
#include <dos.h>
 
int 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;
}
 
 
output:-
 
This code works in Turbo C only because it supports dos.h header file.