Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery UI DateTimepicker - cannot hide the time

I'm using the date time picker component from http://trentrichardson.com/examples/timepicker/. Trying to hide the time picker but my code doesn't work:

$('#id_start_date_time').datetimepicker('option', 'showTimepicker', false);
like image 919
Ruben Avatar asked Jul 16 '12 14:07

Ruben


1 Answers

I just came across this issue. I know its been a while since this question was asked by the OP and he has probably solved the problem. Just for someone who might be encountering this issue in the future, if you want to hide the timepicker, just simply call the original jquery ui datepicker method

datepicker()

instead of

datetimepicker()
like image 179
Andrew Liu Avatar answered Sep 28 '22 03:09

Andrew Liu