Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Convert NSDate from local timezone to UTC and vice versa in Swift 3.0

1. To convert UTC(Coordinated Universal Time) to Local timezone func convertToLocalDateFromUTCDate(dateStr : String) -> String { let formatter = DateFormatter() formatter.dateFormat = "yyyy-MM-dd HH:mm:ss Z" let...

How to find hours between two NSDate objects?

We can find the hours between two dates by using NSDateFormatter. NSDateFormatter provides formatting and conversion methods for NSDate objects. In below code, I have used formatter to convert the start date and end date into hours and minutes wh...

How to get time intervals in hours between start time and end time in objective C

If we want to get the time intervals between the start time and end time then use the following code- it will return the array of hours according to the start time and end time. + (NSMutableArray *)getTimeIntervals:(NSString *)startTime a...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: