datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

Calendar and times not showing

Open jhob101 opened this issue 7 years ago • 7 comments

On initialising the datetimepicker the calendar and time picker are not showing any values, see screenshot here: http://bit.ly/2qrj6no jQuery.datetimepicker.setLocale('en'); $('.datetimepicker input[type=text').datetimepicker({ format: 'Y-m-d H:i', inline: true });

Console is not showing any errors.

jhob101 avatar May 17 '17 08:05 jhob101

I'm having the same issue but with an even simpler format:

$('#datetimecalendar').datetimepicker();

anthonyhartwig avatar May 23 '17 13:05 anthonyhartwig

It is getting caught at line 1649 with the dateHelper being null:

} else if (options.disabledDates.indexOf(dateHelper.formatDate(start, options.formatDate)) !== -1) {

anthonyhartwig avatar May 23 '17 13:05 anthonyhartwig

Turns out I was a dummy. I wasn't including the full version. Make sure you're using the full version from the build directory and include like this:

<link rel="Stylesheet" href="./Scripts/datetimepicker/jquery.datetimepicker.min.css" /> <script type="text/javascript" src="./Scripts/datetimepicker/jquery.datetimepicker.full.min.js"></script>

anthonyhartwig avatar May 23 '17 14:05 anthonyhartwig

On initialising the datetimepicker the calendar and time picker are not showing any values, see screenshot here: http://bit.ly/2qrj6no

shyamneosoft111 avatar Jun 05 '17 15:06 shyamneosoft111

@shyamneosoft111 are you using the full version (like I stated above)? Also, are there any console errors you can provide?

anthonyhartwig avatar Jun 05 '17 18:06 anthonyhartwig

same issue, I need to click home or other button and every thing goes ok. i am working in inline mode I add: $('#datatimepicker_2').datetimepicker('reset'); and now it is working fine.

simryc avatar Jul 04 '17 20:07 simryc

i have a same issue anyone can help me please

fazalsandhi avatar Nov 15 '19 05:11 fazalsandhi