# parseICalendar (@salmonui/export/ics)

> The parseICalendar function of @salmonui/export/ics: Parses iCalendar text (RFC 5545): unfolds lines, unescapes TEXT values and reads every VEVENT (nested components such as VALARM are skipped). A VEVENT without a readable DTSTART is dropped. A DURATION without DTEND becomes end.

Canonical: https://salmonui.dev/docs/reference/export/ics/parseICalendar

```ts
import { parseICalendar } from '@salmonui/export/ics';
```

Entry index: https://salmonui.dev/docs/reference/export/ics (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/export/ics.md).

## Reference

Kind: function

```ts
function parseICalendar(text: string): ICalendarDocument;
```

Parses iCalendar text (RFC 5545): unfolds lines, unescapes TEXT values and
reads every VEVENT (nested components such as VALARM are skipped). A
VEVENT without a readable DTSTART is dropped. A DURATION without DTEND
becomes `end`.
