I currently have an array of weekdays that represent integers which I will trigger a notification on that weekday
let weekdays:[Int] = [1,4,7]
- in dateComponents, weekdays represent a number so for example - integer 1 represents Sunday and integer 7 represent Saturday - I was wondering how can I transfer those integers to a weekday string - for example in the array weekdays I have [1,4,7] - I want to then print out [Sunday, Wednesday, Saturday] is there a way to do that? any help would be great.