I'm trying to convert an ICS file attached in a mail to a google calendar item. I was able to extract the text from the invite in the following format:
BEGIN:VCALENDAR
PRODID:-//DigiFit//Gym//EN
METHOD:PUBLISH
VERSION:2.0
BEGIN:VEVENT
SUMMARY:Summary
UID:******@********.com
STATUS:CONFIRMED
DTSTART:20220831T194500
DTEND:20220831T204500
DESCRIPTION:Description
LOCATION:location
END:VEVENT
END:VCALENDAR
Raw output:
"BEGIN:VCALENDAR\nPRODID:-//DigiFit//Gym//EN\nMETHOD:PUBLISH\nVERSION:2.0\nBEGIN:VEVENT\nSUMMARY:Summary\nUID:******@********.com\nSTATUS:CONFIRMED\nDTSTART:20220831T194500\nDTEND:20220831T204500\nDESCRIPTION:Description\nLOCATION:location\nEND:VEVENT\nEND:VCALENDAR"
Basically I want to extract the DTStart DTEnd and description, I already managed to split the text into a string array using the "

Report
All responses (
Answers (