Is there a way to specify a format for the createdField date and the updatedField date? #382
-
setting my Schema params as follows:
results in the following values in my dynamo table:
This isn't the ISO format defined by most libraries and it's not easily searchable or sortable. My expectation if I set isoDates to true is this ISO compliant format, which is both searchable and sortable and is also what is returned by javascript and several other runtimes natively when rendered as ISO format:
Is there the ability to use these auto create/updated fields in this format? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Are you supplying the createdField value as a string or as a Date? This works for us here. |
Beta Was this translation helpful? Give feedback.
-
Don't set them to strings in your schema. Either don't specify them or set them to Date ('date') |
Beta Was this translation helpful? Give feedback.
Don't set them to strings in your schema. Either don't specify them or set them to Date ('date')