toJavaDate (NotesDateTime - JavaScript)

Converts a NotesDateTime object to a Date object.

Defined in

NotesDateTime

Syntax

toJavaDate() : Date
Return value Description
Date The date-time as a Date object.

Examples

This computed field displays the creation date of the current document in ISO format.
var doc:NotesDocument = currentDocument.getDocument();
var dt:NotesDateTime = doc.getCreated();
var jdt:Date = dt.toJavaDate();
return jdt.toISOString()