#include #include #include using namespace std; int main() { time_t local_time; struct tm *today; int day=0,month=0,year=0; time(&local_time); printf("%s",ctime(&local_time)); today = localtime(&local_time); day = today->tm_mday; month = today->tm_mon; year= (today->tm_year)+1900; cout << day << " " << month << " " << year << endl; return(0); }