00001 #include "../Interface/main.h" 00002 #include "../common/date.h" 00003 #include <iostream> 00004 00005 using namespace std; 00006 00007 bool maindate(void) { 00008 Date d=Date(); 00009 d.setDateToToday(); 00010 cout<<"Today's date is :"<<endl; 00011 cout<<d.toString()<<endl; 00012 if (d.lastDayOfMonth()!=30 || d.lastDayOfMonth()!=31) { 00013 return false; 00014 } else return true; 00015 }