I have NSString that has value "22/04/2013 05:56", as per the requirement I just want to calculate this time and date and show some condition based messages.
First condition: If (String date = current date and stringtime = current time)||(string date = current date and string time < 1 minute from current time)
Second condition: If (String date = current date and stringtime > current time by how many minutes or hour)
Third Condition: To know is string date is yesterday.
Fourth Condition: To Know is string date is day before yesterday.
I am receiving this string from server. How can I achieve above things with this "22/04/2013 05:56" string.