public boolean controlDate(String date){
       
      if (date.length()==10){
       String ss[] = date.split("[.]");
       int day = 0; 
       int month = 0;
       int year = 0;
       if(ss.length != 3)
           return false;
       try{
       day = Integer.parseInt(ss[0]);
       month = Integer.parseInt(ss[1]);
       year = Integer.parseInt(ss[2]);
       } catch (NumberFormatException e){
            return false;
       }
       if((0<day)&&(day<32)&&(0<month)&&(month<13)&&(2000<year)&&(year<3000)){
           return true;
       } else {
           return false;
       }
      } else {
          return false;
      }
   }