Does this work for what you're trying to do?
NSString * dateString = @"2014-01-31 17:40:56";
NSDateFormatter *df=[[NSDateFormatter alloc] init];
[df setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
[df setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]];
NSDate *date = [df dateFromString:dateString];
NSTimeInterval since1970 = [date timeIntervalSince1970]; // January 1st 1970
double result = since1970 * 1000;