
consider the string like "2017-08-30T06:40:00.000+00:00" 1 - How to convert this string into timestamp 2 - How to group this value into time slots (for eg, if the value is time = 2:30 PM, it will be grouped into the slot of 2pm to 3pm)

consider the string like "2017-08-30T06:40:00.000+00:00" 1 - How to convert this string into timestamp 2 - How to group this value into time slots (for eg, if the value is time = 2:30 PM, it will be grouped into the slot of 2pm to 3pm)
I will help you with an idea in objective C try converting to the swift, If not you can ask me. I will help you out with the right code. Write a function like this generically and use it in the places wherever you wanted to convert the date format.