• Join - It's Free

Query part of a date field and date format?

Started by Job Waterreus on Thursday, July 28, 2016
Problem with this page?

Participants:

  • Geni Pro
  • Private User
    Geni Pro
  • Private User
    Geni Pro

Related Projects:

Showing all 6 posts

When I request the field birth for a profile I get date and location data.
If I'm interested in only part of the information is there a way to specify that I only want a certain part?
Say only birth day, birth month, birth year and no other data like location or formatted date?

How are before, after, between and circa handled? is there a certain order for the fields?

In API verison 1, we combined all the birth info into one field.
In API version 0, they're still separate. You can add the parameters:

fields=birth_date,birth_location&api_version=0

to your request if you wish to get them.

Unfortunately, you can't get the specific date parts.

I'm not sure what you mean by 'handled'. You can query
a profile with before, after, and circa dates to find out.

The fields can appear in any order.

Scott,

Thanks. I will just have to try to find some profiles with different uses of the date fields then to see what will be returned

For documents the api seems to return only timestamps for date/time the document was created/updated.
is there a way to convert a timestamp to a date/time? (or a way to get date/time returned from the api)?

's a classical "unix" timestamp. Just google for explanation and sources.

Here is an old implementation I once created:

https://github.com/bpbrox/GeniApiSample/blob/master/GeniApiSample/U...

Bjørn,

Thanks.

Showing all 6 posts

Create a free account or login to participate in this discussion