Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9243899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:54:32+00:00 2026-06-18T08:54:32+00:00

It seems that kinvey does not support a specific date type. How then should

  • 0

It seems that kinvey does not support a specific date type.

How then should the dates be stored to make it possible to query between certain dates?

I am specifically interested in implementing this on their REST platform.

This mocha test seems to pass, however, I fear they are being filtered alphabetically and this may cause some edge cases that I have not thought of yet.

(note, there’s boilerplate missing from the mocha test that I have abstracted to a common module)

describe(kinvey.description, function () {
    it('query between two dates', function (done) {
        var query = 'query={"date_of_birth":{"$gt" : "1948-01-01", "$lt" : "1948-08-19"}}&sort=last_name'
        kinvey.get('/appdata/' + kinvey.appKey + '/static?' + query, function (response, body) {
            assert.equal(body.length, 1)
            //john bonham
            assert.equal(body[0].first_name, 'John')
            assert.equal(body[0].last_name, 'Bonham')
            done()
        })
    })
})

Here is the test data I am playing around with.

Example data

(Could someone with enough reputation points add a Kinvey tag?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:54:33+00:00Added an answer on June 18, 2026 at 8:54 am

    I’m part of the engineering team at Kinvey. As long as your date is in ISO-8601 format (https://en.wikipedia.org/wiki/ISO_8601), the dates will query correctly. Edge cases will occur if dates are not stored with all digits.

    Example:

    2012-02-08 will sort and query correctly, but 2012-2-8 will not.

    As long as dates are in this format, query filters such as the below function correctly.

    {"date_of_birth":{"$gt" : "1948-01-01", "$lt" : "1948-08-19"}}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems that the android TTS classes found in the sdk does not support
Seems that it may not be possible, but hey I might as well ask,
Seems that Grails does automatically recompile my GSP pages, but not my controllers. It
It seems that by default Catalyst does not output Cache-Control: , etc. headers. I
It seems that 'delete' (free memory in C++) does not work when I'm trying
It seems that input redirection in gdb does not work in Cygwin e.g (gdb)
Seems that a site I made for fun does not like to work in
Seems that CPPPATH does not work env = Environment() target = 'app' sources =
It seems that JavaScript's Date() function can only return local date and time. Is
It seems that it is not advisable to use <meta http-equiv=REFRESH CONTENT=3;url=url> for redirects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.