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();
}


8 thoughts on “How to print system date in turbo c/c++

Leave a Reply

Your email address will not be published.