matthewcheok / Realm-JSON

A concise Mantle-like way of working with Realm and JSON.
MIT License
661 stars 129 forks source link

Custom date format in MCJSONDateTransformer #61

Closed v-yatsevich closed 8 years ago

v-yatsevich commented 9 years ago

Why in MCJSONDateTransformer are there only three date's formats? For some reasons i'm getting date like "yy.MM.dd' 'hh:mm", and I can't parse it by this transport. Maybe should add method like valueTransformerWithDateFormat:(NSString ) or (NSDateFormat)? If you accept it, i'll write it.

matthewcheok commented 9 years ago

Because this format is less commonly used, it's not provided out of the box. You can always create and use your own NSValueTransformer which you can build using the provided ones as a reference. If you think this is useful enough to be added to the library, I'll be happy to accept it.