code: function(month, year) {
          var domTable = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];
  
          if(month == 2) {
              if((year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0))) {
                  domTable[month-1] = 29;
              }
          }
  
          return(domTable[month-1]);
      }
docs: A string instance is valid against this attribute if it is a valid date representation as defined by RFC 3339, section 5.6 [RFC3339]. Based on http://stackoverflow.com/questions/11318634/how-to-convert-date-in-rfc-3339-to-the-javascript-date-objectmilliseconds-since