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);
Here is code by Sven:
error in date items, daylight Saving
Update:
I had to do the same thing and found out that it’s working this way in Java agent in 8.5.2FP3: