GAGBOX is your one source to humor and fun

15 January, 2009

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.


int main(void)
struct date 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 Your Thoughts!


Post a Comment

Copyright © 2013 GagBox™ is a registered trademark.

Designed by GagBox Inc. Desiged By Blogger Hosting by Blogger.