Title: Use a date range with API function
Last modified: November 13, 2018

---

# Use a date range with API function

 *  [ericstz](https://wordpress.org/support/users/ericstz/)
 * (@ericstz)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/use-a-date-range-with-api-function/)
 * Hello,
 * I want to use a date range with api function. I tried that :
 * wp_statistics_visitor(“2018-11-10T00:00:00”, “2018-11-11T23:59:59”);
 * But it’s not working. How can I select a date range ?
 * Thanks for your help
    Eric
    -  This topic was modified 7 years, 6 months ago by [ericstz](https://wordpress.org/support/users/ericstz/).

The topic ‘Use a date range with API function’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ericstz](https://wordpress.org/support/users/ericstz/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/use-a-date-range-with-api-function/)
 * Status: not resolved