+ Start a Discussion
kyleRochekyleRoche 

DateTimeValue change in latest iOS toolkit?

Hi everyone. I recently upgraded a project to the new version of the iOS toolkit. I'm getting null values on dateformat strings now. It looks like there was some changes within the dateTimeValue function? 

 

Here is a sample code snippet. This used to return a value, but is now null. Is there another example of how to properly format dates from SFDC? 

 

NSDate *treatmentDate = [patient dateTimeValue:@"Last_Admission_Date__c"];

NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];

[dateFormat setDateFormat:@"yyyy-MM-dd HH:mm zzz"];

NSString *dateString = [dateFormat stringFromDate:treatmentDate];

cell.detailTextLabel.text = [NSString stringWithFormat:@"Admission Date: %s", dateString];

 

Thanks

SuperfellSuperfell

I don't think any of the iOS toolkit folks hang out here, you might want to log an issue on the github project. https://github.com/developerforce/Force.com-Toolkit-for-iOS/issues