You can use Swift's Date and Calendar classes to get the start and end of today as an ISO8601 formatted string. Here's how you can do it:
main.swift708 chars10 linesThe startOfDayISO and endOfDayISO variables now contain the start and end of today as ISO8601 formatted strings.
gistlibby LogSnag