Forum Discussion

omygoodness's avatar
7 years ago

date_start and date_end - How they work?

Hi, I wonder how date_start and date_end exactly works.   If I set query like this: restapi/vc/users/id/${id}/metrics/name/net_replies?date_start=2018-01-17&date_end=2018-01-17 It shows 0. But i...
  • srujanayeruvaka's avatar
    7 years ago

    Hi omygoodness,

     

    Please refer to this documentation. The date format is 

    <yyyy>-<MM>-<dd>T<HH>:<mm>:<ss><ZZ>

    However, you do not require the full timestamp to be used in the API. Just the dates would suffice as below.

    date_start=2010-07-01&date_end=2010-07-08

    As far as the result is concerned, usually the fromDate is inclusive and the toDate is exclusive. I'm sure of this at least with Bulk data API. 

    Hope this helps!

     

    Thanks,

    Srujana.