#include <stdio.h>
#include <dos.h>
#include <stdlib.h>
#include <bios.h>
int main(void)
{
struct date DATE;
clrscr();
getdate(ampDATE);
printf(<q>The year is : %dn</q>,DATE.da_year);
printf(<q>The month is : %dn</q>,DATE.da_month);
printf(<q>The day is : %dn</q>,DATE.da_day);
return 0;
}
Output:
======
The year is : 2010
The month is : 04
The day is : 29