build/ical.js
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);
      }
    }
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);
      }
    }
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 ) ; } }
Returns an RFC 5545 compliant ical representation of this object.

@return {String} ical date/date-time
Returns an RFC 5545 compliant ical representation of this object .