Print the Current date in C program

Bismillahir Rahmanir Rahim
This c program prints current system date in your computer. To print date we will use getdate function.
solution:

#include <stdio.h>
#include <dos.h>
 
void main()
{
   struct date d;
 
   getdate(&d);
 
   printf("Current date in your PC is: %d/%d/%d",d.da_day,d.da_mon,d.da_year);

}

If you face any problem you can comment below or in facebook
Thank you for visiting my site.

Socializer Widget By Blogger Yard
SOCIALIZE IT →
FOLLOW US →
SHARE IT →