This project has moved. For the latest updates, please go here.

Hide time portion of a date and time field

Jul 4, 2014 at 1:32 PM
I would like to hide the time portion of the start date and end date fields within a calendar list.
SPUtility.GetSPField('startDate').Hide();
This hides the date and the time.

Is there a way to only hide the time but leave the date visible and editable?
Coordinator
Jul 21, 2014 at 11:58 PM
You could do something like this:
var dateTimeField = SPUtility.GetSPField('Date and Time');
$(dateTimeField.HourDropdown).hide();
$(dateTimeField.MinuteDropdown).hide();