Code for Example of Date in C++ Programming
#include <iostream.h>
#include <conio.h>
#include <dos.h>
#include <stdio.h>
void main()
{
clrscr();
struct date d;
getdate(&d);
int da;
cout<<"Enter U R graduation date";
cin>>da;
int dif=da-d.da_year;
if(dif<0)
{
cout<<dif<<"is left";
}
if(dif>0)
{
cout<<dif<<" Year completed";
}
getch();
}