Change your computer date using C program

Bismillahir Rahmanir Rahim
 Solution:

#include<stdio.h>
#include<dos.h> 
void main()
{
   struct date d;
   printf("Enter the new date:\n");
   printf("Day as integers: ");
   scanf("%d",&d.da_day);
   printf( "Month as integers: ");
   scanf("%d",&d.da_mon);
   printf("Year  as integers: ");
   scanf("%d",&d.da_year);
   // iubatians.blogspot.com
   setdate(&d);
 
   printf("Current system date is: %d/%d/%d\n",d.da_day,d.da_mon,d.da_year);
   
}

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