Skip to main content
A newer version of this page is available. .

RepositoryItemDateEdit.TodayDate Property

Gets or sets the date that is regarded as Today’s date.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[DXCategory("Behavior")]
public DateTime TodayDate { get; set; }

Property Value

Type Description
DateTime

The date that is regarded as Today’s date.

Remarks

A click on the Today button in the dropdown calendar (see RepositoryItemDateEdit.ShowToday) scrolls and zooms the calendar to ensure that Today’s date is visible.

In the CalendarView.Classic mode, a click on the Today button assigns Today’s date to the edit value and thus to the DateEdit.DateTime property and closes the dropdown. In the CalendarView.Vista mode, Today’s date is not assigned to the edit value and the dropdown is not closed.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TodayDate property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also