Is there a way I can create an object from this data stored in a string, coming from the google API:
"recurrence": [
"RRULE:FREQ=WEEKLY;UNTIL=20181213T235959Z;BYDAY=TH"
],
I can use string methods, but I wondered if there was a better way.
Something like:
recurrence: {
frequency: "weekly",
until: "yy/mm/dd",
byday: "th"
}
Any ideas?