setAnyTime (NotesDateTime - JavaScript)

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

Defined in

NotesDateTime

Syntax

setAnyTime() : void

Usage

The date 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 date of the current document.
var doc:NotesDocument = currentDocument.getDocument();
var dt:NotesDateTime = doc.getCreated();
dt.setAnyTime();
return dt.getLocalTime();