How would I go about making an function that does date and time like how apple does in it’s apps?(example. Messaging app and note app) What it would do would be after today ends it would say yesterday, and once that exemption fails then it would say the day, up too a week back. Then it would say the day. Would I have to make like a switch statement that checks every time? Because that seems clunky especially if I just want it in the detail section of a table view cell.
Share
i use this function to test if the given date is today or not