code: function() {
        var string = this.toString();
  
        if (string.length > 10) {
          return ICAL.design.icalendar.value['date-time'].toICAL(string);
        } else {
          return ICAL.design.icalendar.value.date.toICAL(string);
        }
      }
docs: Returns an RFC 5545 compliant ical representation of this object.
  
  @return {String} ical date/date-time