title: How to show only date in JQuery Datetimepicker addon?
body: <p>I've searched high and low for an answer to my question but haven't found one, I did find two related questions though: <a href="https://stackoverflow.com/questions/10611623/jquery-datepicker-should-displays-date-only">JQuery Datepicker should display date only</a> , <a href="https://stackoverflow.com/questions/11506371/jquery-ui-datetimepicker-cannot-hide-the-time">jQuery UI DateTimepicker - cannot hide the time</a></p>
  
  <p>But they didn't solve my problem.</p>
  
  <p>I'm using Trent Richardsons datetimepicker and I would like it to show only date in the textbox. The answer to why I'm not using the datepicker without the addon is because sometimes I want it to show datetime and sometimes only date.</p>
  
  <p>I've can hide the timepicker with the following code:</p>
  
  <pre><code>    datetimepicker("option", "showTimepicker", false);
  </code></pre>
  
  <p>The time disappears from my textbox but the date has a trailing space, "2013-11-01 "
  I've tried the option for separator but no luck.</p>
  
  <pre><code>    datetimepicker("option", "separator", "");
  </code></pre>
  
  <p>Anyone got an idea how I can solve this?</p>
  
  <p>A bit clarification, I'm trying to write kind of a component that can be used through a large solution where it sometimes needs to be a datetimepicker and sometimes a datepicker.
  This "component" contains an input (my datetimepicker) that is wrapped in some html.
  It also has properties that can be set, one of them is the SetDateOnly(), and that is where I'm trying to get the datepicker to show only date.</p>