public static boolean validDayAndMonth(String dayAndMonth)
    {
        int seperator;
        if((seperator = dayAndMonth.indexOf("/")) == -1)
            return false;
        int days[] = {
            0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 
            31, 30, 31
        };
        try
        {
            int month = Integer.parseInt(dayAndMonth.substring(0, seperator));
            int day = Integer.parseInt(dayAndMonth.substring(seperator + 1, dayAndMonth.length()));
            if(day > 31 || day < 1)
            {
                boolean flag1 = false;
                return flag1;
            }
            if(month > 12 || day < 1)
            {
                boolean flag2 = false;
                return flag2;
            }
            if(day > days[month])
            {
                boolean flag3 = false;
                return flag3;
            }
        }
        catch(NumberFormatException e)
        {
            boolean flag = false;
            return flag;
        }
        return true;
    }