I want to display the date only without the time on the text , but it seems that it didn't work even I've set the format of the datepicker. And also I dont want to display the Time in the datepicker. Please see image below, I want to remove the yellow highlighted.
var defaultFormat = { dateFormat: 'mm/dd/yy' };
$.datepicker.setDefaults(defaultFormat);
$('#EM_Date').datetimepicker({
showHour: false,
showMinute: false
});
Use $( "#EM_Date" ).datepicker();
use this format,
$('.picker').datetimepicker({ dateFormat:dateFormat: 'mm/dd/yy' '', timeFormat: 'hh:mm tt', dateonly:true });
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With