function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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];




I don't think any of the iOS toolkit folks hang out here, you might want to log an issue on the github project.