title: XPages date only fieldonly
body: <p>Is it possible to create a date only field in XPages? I have tried the following in the querySaveDocument event but the field still ends up with a time portion of 00:00:00</p>
  
  <pre><code>var notesDoc:NotesDocument = document1.getDocument();
  var dt:NotesDateTime = session.createDateTime(@Today());
  dt.setAnyTime();
  notesDoc.replaceItemValue("MyDateField", dt);
  </code></pre>