Back to Devexpress

ASPxClientDateEdit.SetDate(date) Method

aspnet-js-aspxclientdateedit-dot-setdate-x28-date-x29.md

latest871 B
Original Source

ASPxClientDateEdit.SetDate(date) Method

Specifies the date for the editor.

Declaration

ts
SetDate(
    date: Date
): void

Parameters

NameTypeDescription
dateDate

The date.

|

Remarks

To get the date of the editor (that is the editor’s value), use the ASPxClientDateEdit.GetDate method.

aspx
<dxe:ASPxDateEdit ID="ASPxDateEdit1" runat="server" ClientInstanceName="dateEdit" >
    ...
</dxe:ASPxDateEdit>
js
...
var test_date = new Date(1999, 1, 31);
dateEdit.SetDate(test_date);

See Also

GetDate

ASPxClientDateEdit Class

ASPxClientDateEdit Members