code: function parseISODate(str) {
    var date = '';
  
    if (str instanceof Date) return str;
  
    date += str.substr(0, 4) + '-';
    date += str.substr(4, 2) + '-';
    date += str.substr(6, 2);
  
    if (str.indexOf('T') > -1) {
      date += 'T' + str.substr(9, 2) + ':';
      date += str.substr(11, 2) + ':';
      date += str.substr(13, 2);
      date += str.substr(15);
    }
  
    return new Date(date);
  }
docs: ## Parse YYYYMMDDTHHMMSSZ strings  Takes strings formatted in `YYYYMMDDTHHMMSSZ` (ISO8601 basic) and creates valid Date instances.  Usage:  > dates.parseISODate('20140101T100000Z'); Date('2014-01-01T10:00:00Z')