Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.4.3 Doesn't work with masked input plugin version 1.3.1 #694

Open
slominskir opened this issue Feb 27, 2014 · 1 comment
Open

Comments

@slominskir
Copy link

I'm getting the following error on the Javascript console:

Error parsing the date/time string: Unexpected literal at position 11
date/time string = 20-Mar-2014 03:00
timeFormat = HH:mm
dateFormat = dd-M-yy hh:mm

I'm invoking the plugin like so:

$(".date-field").datetimepicker({
    dateFormat: 'dd-M-yy',
    controlType: myControl
}).mask("99-aaa-9999 99:99");
@slominskir
Copy link
Author

Looks like I need to tell masked input to use spaces and not underscore '_' otherwise datetime picker has the parse error:

$(".date-field").datetimepicker({
dateFormat: 'dd-M-yy',
controlType: myControl,
timeFormat: 'HH:mm'
}).mask("99-aaa-9999 99:99",{placeholder:" "});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant