code: function makeDateFromString(string) {
          var format = 'YYYY-MM-DDT',
              i;
          if (isoRegex.exec(string)) {
              for (i = 0; i < 4; i++) {
                  if (isoTimes[i][1].exec(string)) {
                      format += isoTimes[i][0];
                      break;
                  }
              }
              return parseTokenTimezone.exec(string) ?
                  makeDateFromStringAndFormat(string, format + ' Z') :
                  makeDateFromStringAndFormat(string, format);
          }
          return new Date(string);
      }
docs: date from iso format