Skip to main content

SetDate

Sets the value for the datepicker content control.

Syntax

expression.SetDate(date);

expression - A variable that represents a ApiInlineLvlSdt class.

Parameters

NameRequired/OptionalData typeDefaultDescription
dateRequiredDateThe date value to set for the datepicker.

Returns

boolean

Example

This example demonstrates how to set a date for a datepicker content control.

let doc = Api.GetDocument();
let contentControl = doc.AddDatePickerContentControl();
contentControl.SetDate(new Date(1998, 4, 10));