Created (NotesDocument - JavaScript™)
Read-only. The date/time a document was created.
Defined in
NotesDocumentSyntax
getCreated() : NotesDateTime
Examples
This computed field gets the difference in days between today and the creation day for the current document.var today:NotesDateTime = session.createDateTime("Today");
today.setNow();
var created:NotesDateTime = currentDocument.getDocument().getCreated();
var diff = (today.timeDifference(created) / 86400).toFixed(0);
return "This document was created " + diff + " days ago.";