objc.JSONValueTransformer+ISO8601-body.mustache Maven / Gradle / Ivy
#import
#import "JSONValueTransformer+ISO8601.h"
#import "{{classPrefix}}Sanitizer.h"
@implementation JSONValueTransformer (ISO8601)
- (NSDate *) NSDateFromNSString:(NSString *)string
{
return [NSDate dateWithISO8601String:string];
}
- (NSString *)JSONObjectFromNSDate:(NSDate *)date
{
return [{{classPrefix}}Sanitizer dateToString:date];
}
@end
© 2015 - 2024 Weber Informatics LLC | Privacy Policy