hi all
I want to set constant default value of the time only in datetimepicker control .
can any one help me ?please
hi all
I want to set constant default value of the time only in datetimepicker control .
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sourabh SomaniPosted Nov 13, 2015, 12:36 PM
Sourabh SomaniPosted Nov 13, 2015, 1:05 PM
Banketeshvar NarayanPosted Nov 13, 2015, 12:39 PM
It can be done as follows:
HTML
jQuery
$('#startdatetime-from').datetimepicker({language: 'en',format: 'yyyy-MM-dd hh:mm'$("#startdatetime-from").data('datetimepicker').setLocalDate(new Date(year, month, day, 00, 01));You can check it online in jSFiddle at
http://jsfiddle.net/CujDK/5/
Please mark as answer if it helps you