@Modified (JavaScript)

Returns a time-date value indicating when the document was modified initially.

Defined in

@Functions (JavaScript)

Syntax

@Modified() : Date
Return value Description
Date Last modification date and time.

Examples

This example adjusts the modification date of the current document to mark it OBSOLETE after 30 days.
var s = "ACTIVE";
var xdate = @Adjust(@Modified(), null, null, 30, null, null, null, "[InLocalTime]");
if(@Now() > xdate) s = "OBSOLETE";
return s;