Latest Movie :
Home » , » C Program to Get the Current System Date

C Program to Get the Current System Date

{[['']]}


This program will get or read the current system date from the system. It displays Year, Month and Day.
 
 
 
 
#include <dos.h>
#include <stdio.h> int main(void)
{
struct date d;
getdate(&d);
printf(“The current year is: %d\n”, d.da_year);
printf(“The current day is: %d\n”, d.da_day);
printf(“The current month is: %d\n”, d.da_mon);
return 0;
}
Share this article :

Post a Comment

Feel Free to Say thanks Comment Here

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. SoftwareLibrary4u - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger