Header Ads Widget

How to print system date in turbo c/c++

program:-

#include<dos.h>
int main()
{
struct date today;
getdate(&today);
printf("%d / %d / %d ",today.da_day,today.da_mon,today.da_year);
getch();
}



Post a Comment

8 Comments