XPages date only fieldonly
问题 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 var notesDoc:NotesDocument = document1.getDocument(); var dt:NotesDateTime = session.createDateTime(@Today()); dt.setAnyTime(); notesDoc.replaceItemValue("MyDateField", dt); 回答1: Here is code by Sven: ndt = session.createDateTime(ndt.getDateOnly()); item.setDateTimeValue(ndt); error in date items, daylight Saving Update: I