Title: DateTime::__construct(): Failed to parse time string (2017-31-12)
Last modified: September 18, 2017

---

# DateTime::__construct(): Failed to parse time string (2017-31-12)

 *  Resolved [andrea10072](https://wordpress.org/support/users/andrea10072/)
 * (@andrea10072)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/datetime__construct-failed-to-parse-time-string-2017-31-12/)
 * Hello first time posting, hopefully won’t make mistakes.
 * I was configuring my SportPress plugin for the calendar to show events from time
   x to time y, but i forgot to insert time x and this error is now showing on load“
   DateTime::__construct(): Failed to parse time string (2017-31-12)”.
 * Where can I find the data so to delete the filter and fix the php parse ? I’m
   now downloading my whole site to local, but it could take quite some time to 
   do such a massive search.
 * If somebody could guide me to resolve the issue I would be grateful;
 * P.s. the error is now shown in every page which contained the calendar, included
   the widget

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [andrea10072](https://wordpress.org/support/users/andrea10072/)
 * (@andrea10072)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/datetime__construct-failed-to-parse-time-string-2017-31-12/#post-9507875)
 * Would it help somebody –
    Found the solution by mistake, so to say, when navigating
   in the meta table of WP’s DB – Once I did find the ID related to the Calendar
   post, I changed the ‘from’ clause in the filters, on which Sportpress operates
   the query (From Date X to Date Y – Show calendars)
 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/datetime__construct-failed-to-parse-time-string-2017-31-12/#post-9511082)
 * I’m glad it’s resolved!
 * Please, let us know if you need anything else.
 * Kind Regards,
    -Roch

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘DateTime::__construct(): Failed to parse time string (2017-31-12)’ is
closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

## Tags

 * [calendar](https://wordpress.org/support/topic-tag/calendar/)
 * [datetime](https://wordpress.org/support/topic-tag/datetime/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [sportpress](https://wordpress.org/support/topic-tag/sportpress/)

 * 2 replies
 * 2 participants
 * Last reply from: [Roch](https://wordpress.org/support/users/rochesterj/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/datetime__construct-failed-to-parse-time-string-2017-31-12/#post-9511082)
 * Status: resolved