Title: DatePicker Throws Uncaught Invalid date Error
Last modified: August 18, 2021

---

# DatePicker Throws Uncaught Invalid date Error

 *  Resolved [zvitambo](https://wordpress.org/support/users/zvitambo/)
 * (@zvitambo)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/datepicker-throws-uncaught-invalid-date-error/)
 * The Date Picker on the events listing page is throwing a Uncaught Invalid date
   Error when I select any date, I’m seeing this in the developer tools console.
   I am using chrome browser. My theme is the Astra Theme . I would like to post
   a picture , but i can share the errors in the console
 *     ```
       datepicker.min.js?ver=1.12.1:9 Uncaught Invalid date
       parseDate @ datepicker.min.js?ver=1.12.1:9
       onSelectDay @ jquery.comiseo.daterangepicker.js?ver=3.1.21:220
       _selectDate @ datepicker.min.js?ver=1.12.1:9
       _selectDay @ datepicker.min.js?ver=1.12.1:9
       selectDay @ datepicker.min.js?ver=1.12.1:9
       dispatch @ jquery.min.js?ver=3.5.1:2
       v.handle @ jquery.min.js?ver=3.5.1:2
       common.min.js?ver=3.2.5:2 
   
       Uncaught TypeError: Cannot read property 'indexOf' of undefined
           at String.<anonymous> (common.min.js?ver=3.2.5:2)
           at Function.each (jquery.min.js?ver=3.5.1:2)
           at onError (common.min.js?ver=3.2.5:2)
           at dispatch (jquery.min.js?ver=3.5.1:2)
           at v.handle (jquery.min.js?ver=3.5.1:2)
       (anonymous) @ common.min.js?ver=3.2.5:2
       each @ jquery.min.js?ver=3.5.1:2
       onError @ common.min.js?ver=3.2.5:2
       dispatch @ jquery.min.js?ver=3.5.1:2
       v.handle @ jquery.min.js?ver=3.5.1:2
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdatepicker-throws-uncaught-invalid-date-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Hitesh Makvana](https://wordpress.org/support/users/hiteshmakvana/)
 * (@hiteshmakvana)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/datepicker-throws-uncaught-invalid-date-error/#post-14787528)
 * Hi [@zvitambo](https://wordpress.org/support/users/zvitambo/)
    We have tested
   with Astra and it is working fine. Can you please provide me your view date format
   and datepicker format settings so we can reproduce them? Thank you
 *  Thread Starter [zvitambo](https://wordpress.org/support/users/zvitambo/)
 * (@zvitambo)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/datepicker-throws-uncaught-invalid-date-error/#post-14788814)
 * Hi [@hiteshmakvana](https://wordpress.org/support/users/hiteshmakvana/)
 * Thank you for getting back to me on this. Here are the current settings :
 * Datepicker Date Format
    15.01.2021
 * Date Format
    Y-m-d
 * Date And Time Separator
    @
 * Event Timezone website timezone.
 *  [Hitesh Makvana](https://wordpress.org/support/users/hiteshmakvana/)
 * (@hiteshmakvana)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/datepicker-throws-uncaught-invalid-date-error/#post-14802892)
 * Hi [@zvitambo](https://wordpress.org/support/users/zvitambo/)
    We have tested
   the same settings and divi but still there is no error in console. Can you please
   deactivate all other plugin and try to replicate.
 * Thank you
 *  Thread Starter [zvitambo](https://wordpress.org/support/users/zvitambo/)
 * (@zvitambo)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/datepicker-throws-uncaught-invalid-date-error/#post-14803200)
 * Hi [@hiteshmakvana](https://wordpress.org/support/users/hiteshmakvana/)
 * I deactivated all plugins and it worked fine. But the moment I reactivated the
   Elementor plugin the error reappeared. It seems to be caused by the Elementor
   plugin. Do you have any idea on what I can do to resolve this.
    Also please check
   the link its now activate [](http://34.77.240.12/eventswp/).
 * Thank you
 *  [Hitesh Makvana](https://wordpress.org/support/users/hiteshmakvana/)
 * (@hiteshmakvana)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/datepicker-throws-uncaught-invalid-date-error/#post-14806362)
 * Hi [@zvitambo](https://wordpress.org/support/users/zvitambo/)
    We try to reproduce
   with elementor but still no error it might be some settings or something else.
   try with the default theme and with elementor.
 * Thank you
 *  Thread Starter [zvitambo](https://wordpress.org/support/users/zvitambo/)
 * (@zvitambo)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/datepicker-throws-uncaught-invalid-date-error/#post-14813786)
 * Hi [@hiteshmakvana](https://wordpress.org/support/users/hiteshmakvana/)
 * I tried the default theme with elementor and I also changed the elementor settings,
   but the error still persists.
 * Thank you
 *  [Priya Goenka](https://wordpress.org/support/users/priyagoenka/)
 * (@priyagoenka)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/datepicker-throws-uncaught-invalid-date-error/#post-14956591)
 * Hi [@zvitambo](https://wordpress.org/support/users/zvitambo/)
 * If You are still facing the issue, Please create a support ticket here: [suppoort@wp-eventmanager.com](https://wordpress.org/support/topic/datepicker-throws-uncaught-invalid-date-error/suppoort@wp-eventmanager.com?output_format=md)
 * Regards,
    priya

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

The topic ‘DatePicker Throws Uncaught Invalid date Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-event-manager/assets/icon-256x256.png?rev=1622826)
 * [WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce](https://wordpress.org/plugins/wp-event-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-event-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-event-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-event-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-event-manager/reviews/)

## Tags

 * [date picker](https://wordpress.org/support/topic-tag/date-picker/)

 * 7 replies
 * 3 participants
 * Last reply from: [Priya Goenka](https://wordpress.org/support/users/priyagoenka/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/datepicker-throws-uncaught-invalid-date-error/#post-14956591)
 * Status: resolved