-4

In my current project i need to show most three months events details from the given response (eventTimestamp) array. this is response:

 [
     {
       "patientEventsId": 11,
       "userId": 72,
       "patientId": "CDMRI-U-2017030341",
       "doctorId": "CDMRIDR2017030012",
       "doctorEventsId": 18,
       "doctorEventName": "Hypoglycemia",
       "eventTimestamp": "2017-03-31 11:54:15",
       "recordTimestamp": "2017-03-31 11:54:30",
       "reviewed": false
     }
    ]

I need to calculate:

  • most recent three months names
  • get dates of that particular month which are in response
  • List no of events on that particular date (count) in that particular month

1 Answers1

2

Find difference between two NSDates timeStamp using Swift to check the following Links,

PT Vyas
  • 722
  • 9
  • 31