Welcome
Login
Sign up
Home
Solutions
Forums
How can we help you today?
Enter your search term here...
Search
Login
or
Signup
to submit a new ticket
Check ticket status
Start a new topic
Discussions
Kinvey Forums
General Discussion
Does Kinvey query support the ISO 8601 "Duration" formats?
J
JTLai
started a topic
over 6 years ago
We are storing durations in ISO-8601 Duration format, e.g. "PT30M"
When using this in a query, e.g. query.lessThanOrEqualTo(), Kinvey seems to treat it as string comparison. E.g. "PT1H"
Is this duration format supported in a query but we just aren't configuring/querying it right? Or should we look into alternative formats?
2 Comments
Oldest First
Popular
Newest First
Sorted by
Oldest First
C
Caroline
said
over 6 years ago
Hi JTlai,
Unfortunately we don't support durations as a format, only [ISO for dates/times](http://docs.mongodb.org/manual/core/shell-types/ "ISO for dates/times").
J
JTLai
said
over 6 years ago
Got it. Thanks for confirming!
Login
or
Signup
to post a comment
More topics in
General Discussion
What is the best way to store and load hierarchies/relationships in the Data Store?
How do I create in-app payments using Kinvey?
Link users to file uploads
question about references and user permissions
Data storage limits?
Relational Data - Files
What defines an Active User?
"The app backend is under lockdown"
query doesn't show files, can't download.
Posting Code to Forum
See all 315 topics
JTLai
When using this in a query, e.g. query.lessThanOrEqualTo(), Kinvey seems to treat it as string comparison. E.g. "PT1H"
Is this duration format supported in a query but we just aren't configuring/querying it right? Or should we look into alternative formats?