DateOnly (NotesDateTime - JavaScript)

Read-only. A string representation of the date part of a time-date value.

Defined in

NotesDateTime

Syntax

getDateOnly() : string

Examples

This computed field displays the creation date for the current database.
var dt:NotesDateTime = database.getCreated();
return "This database was created on " + dt.getDateOnly();