DS Server

Javascript: DocumentSettings.getCreationDate Method

Method|Introduced in 29.0

Description

Gets the document's creation date as a unix timestamp.

Syntax

<void> DocumentSettings.getCreationDate(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the property value.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates DocumentSettings.getCreationDate in a practical document-editing workflow. It gets the document's creation date as a unix timestamp.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.documentSettings.getCreationDate(
    function(result) {
        console.log("get creation date result:", result);
    },
    onTxError
);