jQuery-Timepicker-Addon
jQuery-Timepicker-Addon copied to clipboard
Getting error message:Error parsing the date string: Extra/unparsed characters found in date: 00:00 date string = 09/18/2013 00:00 date format = mm/dd/yy
I am using Addon TimePicker with select dropdown. I have start and end date with time. When I select already selected value I get this error message:Error parsing the date string: Extra/unparsed characters found in date: 00:00 date string = 09/18/2013 00:00 date format = mm/dd/yy
I am using version 1.4 Add-on!
Please help. Thank You!
Be sure you are using timepicker() instead of datepicker (). Also your timeFormat must exactly match the input or else these parse errors are thrown. It is a strict parse. On Sep 18, 2013 3:16 PM, "drmonal86" [email protected] wrote:
I am using Addon TimePicker with select dropdown. I have start and end date with time. When I select already selected value I get this error message:Error parsing the date string: Extra/unparsed characters found in date: 00:00 date string = 09/18/2013 00:00 date format = mm/dd/yy
I am using version 1.4 Add-on
— Reply to this email directly or view it on GitHubhttps://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/643 .
My timeFormat is hh:mm. Also I am using timePicker() instead of datePicker() but still the error when I reselect the widget @trentrichardson
If I use $('#id').timePicker() I do not get any error. But error comes when I use $('#id').datetimepicker()
If you are using timepicker() the date string can only be hh:mm, there can not be any date data in it. You mentioned your date string = "09/18/2013 00:00", so you must use datetimepicker(). If you want to use timepicker it must only be "00:00" (leave out the date part), and if you only want datepicker() then leave off the time "09/18/2013"
On Wed, Sep 18, 2013 at 4:16 PM, drmonal86 [email protected] wrote:
If I use $('#id').timePicker() I do not get any error. But error comes when I use $('#id').datetimepicker()
— Reply to this email directly or view it on GitHubhttps://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/643#issuecomment-24695717 .
Thanks,
Trent Richardson
trentrichardson.com
That was just a test when I switch from datetime to time..In reality I want to use datetime() and using that gives me error message. Thank you!
Can you paste here the exact datetime() call with all options and the datetime string in the input it is trying to parse?
On Wed, Sep 18, 2013 at 4:26 PM, drmonal86 [email protected] wrote:
That was just a test when I switch from datetime to time..In reality I want to use datetime() and using that gives me error message. Thank you!
— Reply to this email directly or view it on GitHubhttps://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/643#issuecomment-24696418 .
Thanks,
Trent Richardson
trentrichardson.com
Actually, you mentioned using a select dropdown. I don't know that this is supported with datepicker. I know at least I haven't ever encountered using or even testing it with the timepicker addon. So that may not work all together?...
On Wed, Sep 18, 2013 at 4:32 PM, Trent Richardson < [email protected]> wrote:
Can you paste here the exact datetime() call with all options and the datetime string in the input it is trying to parse?
On Wed, Sep 18, 2013 at 4:26 PM, drmonal86 [email protected]:
That was just a test when I switch from datetime to time..In reality I want to use datetime() and using that gives me error message. Thank you!
— Reply to this email directly or view it on GitHubhttps://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/643#issuecomment-24696418 .
Thanks,
Trent Richardson
trentrichardson.com
Thanks,
Trent Richardson
trentrichardson.com
I got that from your site. Using controlType:select gives select instead of slider.
here is the datetime String in my input : 09/18/2013 13:37
$('#StartDatetime').datetimepicker({
controlType:'select',
timeFormat: 'hh:mm'
});
input type="text" id="StartDatetime" value="" name="StartDatetime" value=""
Oh ok, you meant controlType: select, I was thinking using the select as the input. I also notice you are using 24 hr format, that should be capital H in the timeFormat. HH:mm. If that doesn't work have you tried the same version of jQueryUI as in the documentation page?
On Wed, Sep 18, 2013 at 4:40 PM, drmonal86 [email protected] wrote:
— Reply to this email directly or view it on GitHubhttps://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/643#issuecomment-24697429 .
Thanks,
Trent Richardson
trentrichardson.com
Doesnt work with HH:mm. My jquery UI is 1.8.15
Can you try a newer version? Documentation is running on 1.10.3. Also try specifying the dateFormat?
http://code.jquery.com/ui/1.10.3/jquery-ui.min.js
On Wed, Sep 18, 2013 at 4:47 PM, drmonal86 [email protected] wrote:
Doesnt work with HH:mm. My jquery UI is 1.8.15
— Reply to this email directly or view it on GitHubhttps://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/643#issuecomment-24697973 .
Thanks,
Trent Richardson
trentrichardson.com
Still debugging! Doesn't work for me.!Thanks for your help.
I have exact the same problem. Something like this: Error parsing the date string: Extra/unparsed characters found in date: 11:06 date string = 2013-09-27 11:06 date format = yy-mm-dd
I'm using the minimal testcase by simply calling $('<input>').appendTo('body').datetimepicker() and get:
Error parsing the date string: Extra/unparsed characters found in date: 00:00
date string = 29/11/2013 00:00
date format = dd/mm/yy
This doesn't happen if I call it on http://trentrichardson.com/examples/timepicker/ so that may be a problem with a specific jQuery/jQuery-UI version. In my project I'm forced to use:
- jQuery 1.8.3
- jQuery-UI 1.8.23
I'm having the same issue.
I'm using it with an alt field and i'm changing the min and max date.
I can confirm that this is a jQuery / jQuery-UI version issue. Upgrading my project from jQuery 1.7.2 / jQuery-UI 1.8.21 to jQuery 1.10.2 / jQuery-UI 1.9.2 resolved the problem.
Hitting the same issue but we're not allowed to upgrade the jquery versions in use
Same issue here, using jQuery 1.10.2, jQuery UI 1.8.24 (via the Grails plugin).
Config:
dateFormat:'yy-mm-dd', timeFormat:'HH:mm'
Error:
Error parsing the date string: Extra/unparsed characters found in date: 15:47
date string = 2014-07-03 15:47
date format = yy-mm-dd
Any help on this?
Error:
Error parsing the date string: Extra/unparsed characters found in date: 23:11:21
date string = 2014-07-26 23:11:21
date format = yy-mm-dd
Using: jQuery 1.8.3 / jQueryUI 1.8 (could not update these...)
If anyone is still having issues and are unable to upgrade jqueryui try using an older version of timepicker. If you look at the branch/tags dropdown in github you should see all the versions.
I'm getting this error using JQuery 1.10.2/ jQuery UI 1.8.14. The error is also on http://trentrichardson.com/examples/timepicker/ Has anyone confirmed what version of jQuery/jQuery UI fixes this error? Is there a fix?
I'm using v1.5.3 of the plugin.
When I use your plugin with others working with jquery ui dates it shows the log with "Extra/unparsed characters found in date".
This occurs for example with multidatespicker
The fire line is in your override of parseDate
$.datepicker.parseDate = function (format, value, settings) {
of jquery ui.
You fire a log message when something wrong (in multidate all is wrong with more than one date).
I think the mistake is in multidatepicker for call parsedate with more than one date, but your shows the problem, it's ok in developer, but shows ugly in production/distro when includes minified version, that also includes this alert, and it`s a problem that your code affect other plugins.
I propose to add this on minified version, so no more warnings on log with this one version.
Put it after the existing code.
/*mete avisos al log, en distro no debería*/ (function(factory) { if (typeof define === "function" && define.amd) { define(["jquery", "jquery-ui-dist"], factory); } else { factory(jQuery); } }(function( $ ){ $.timepicker.log=function(){return} }));