Error parsing the date/time string: Wrong time format jquery timepicker

24
April 16, 2018, at 07:26 AM

I'm working with the datetimeRange from jquery timepicker but it keeps indicating that I have the wrong time format, even though it looks like everything is exactly the same. Does anyone see where the problem is? I'm not sure if it's because of the UTC at the end.

Error:

Error parsing the date/time string: Wrong time format 
date/time string = 2018-04-25 13:00:00 UTC 
timeFormat = hh:mm:ss 
dateFormat = yy-mm-dd

My code:

        $.timepicker.datetimeRange( 
          startDateTextBox, 
          endDateTextBox, 
          { 
              dateFormat: "yy-mm-dd", 
              timeFormat: "hh:mm:ss", 
              hourMin: 9, 
              hourMax: 17, 
              stepHour: 1, 
              stepMinute: 15, 
              range: true, 
              minDate: '2d',//how many days after current day 
              start: {}, // start picker options 
              end: {}, // end picker options 
              beforeShowDay: checkDate, 
              onSelect: function(selected) { 
                $('#btn_book').attr('disabled', false); 
              } 
          } 
        );

Thanks so much in advance!

READ ALSO
Boolean comparison == and === [on hold]

Boolean comparison == and === [on hold]

I'm trying to understand,

47
Extract external domain xml data with jquery

Extract external domain xml data with jquery

I have an error in the browser when extracting the xml data from an external domain through jquery ajax

48
How to select a specific start for an increment and reset it

How to select a specific start for an increment and reset it

Ive been spending countless hours trying to figure it outWhat I am trying to make is an animating slide show

44
jQuery $.ajax() find method

jQuery $.ajax() find method

I'm having difficulty passing the data returned from the server to the correct element in my code, although I can see the response in the developer tools and find seems to return the correct selectorThe example is from the book found here

18