C program to Display the Current time on those system. getdate() methods to get date information with the helps of Struct date s.
Display System date in C programming code
#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main( )
{
int dd, mm, yy;
struct date s;
clrscr( );
getdate(&s);
printf("\n Present System Date ( dd/mm/yy )-> %d / %d / %d ", s.da_day, s.da_mon, s.da_year);
getch();
}
Output:-

Display System date in C programming code
#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main( )
{
int dd, mm, yy;
struct date s;
clrscr( );
getdate(&s);
printf("\n Present System Date ( dd/mm/yy )-> %d / %d / %d ", s.da_day, s.da_mon, s.da_year);
getch();
}
Output:-
