I have taken in date from the user in DD/MM/YEAR formate but I want to compare it with system date and want to know whether the date entered by the user is in future or past !!
#include <iostream>
#include <ctime>
int main ()
{
char date [10],sysdate[10];
cout<<"enter Date";
cin>>date; //for taking date from user
_strdate(sysdate); //for getting system date(given in DD/MM/YY
cout<< sysdate; //prints system date
}