JQuery Datepicker should display date only

jquery, jquery-ui, jquery-ui-datepicker

Solution

Use $( "#EM_Date" ).datepicker();​

Problem

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 }); ```

Original source