how do i , given two times in HH:mm:ss format compare then and determine which is the later time.
12:00:00 & 14:00:00
how do i determine that 14:00:00 is the later time
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look into
NSDateFormatter(initWithDateFormat:allowNaturalLanguage:,dateWithString) for transforming your input strings intoNSDateinstances. Then use methods likeearlierDate:orcompare:on the resultingNSDates.