-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date transformer with json #87
Comments
Use NSDateFormatter inside value transformer. .h:
.m
It has some extra code, but the idea is the same. Inside your realm object create a new method with a name of a date field that you need to transform before assigning, like so:
Replace cancelledAt with your field name. |
hai , in my incoming json object date and time are in different field so i need to combine both and save as date in realm using batch saving method without iterating using for loop using Realm-Json . |
Hai, how to transform date as string from incoming json object to Nsdate using Realm-Json
The text was updated successfully, but these errors were encountered: