@Created (JavaScript)
Returns the creation date and time of the current document.
Defined in
@Functions (JavaScript)Syntax
@Created() : Date
Return value | Description |
---|---|
Date |
Creation date and time. |
Examples
This example adjusts the creation date of the current document to mark itOBSOLETE
after
30 days.var s = "ACTIVE";
var xdate = @Adjust(@Created(), null, null, 30, null, null, null, "[InLocalTime]");
if(@Now() > xdate) s = "OBSOLETE";
return s;