setAnyDate (NotesDateTime - JavaScript)

Sets the date component to a wildcard value, which means that it matches any date.

Defined in

NotesDateTime

Syntax

setAnyDate() : void

Usage

The time component is unaffected.

This method is useful when passing the object as an argument to other methods.

A NotesDateTime object for which you have invoked this method may not be convertible to string format.

Examples

This computed field displays the creation time of the current document.
var doc:NotesDocument = currentDocument.getDocument();
var dt:NotesDateTime = doc.getCreated();
dt.setAnyDate();
return dt.getLocalTime();