HeaderPane
Main
Hide
Share Link
Print

Today and Clear Buttons

Below its months, a calendar can show two buttons:

ButtonDescription
TodayShown when the CalendarClass.ShowTodayButton property is set (the default). It shows and selects today's date. Its text is defined by the CalendarClass.TodayText property, a .NET format string whose argument 0 is today's date in the culture's short date format. The SftCalendar.TodayClicked event occurs when it is clicked.
ClearShown when the CalendarClass.ShowClearButton property is set. Its text is defined by the CalendarClass.ClearText property. In the dropdown of a field it empties the field (see Values and Empty Fields); in an SftCalendar control it removes the selection, so the SftCalendar.Value property is null, and the SftCalendar.ClearClicked event occurs.

The CalendarClass.TodayDate property defines the date the calendar treats as today. With null (the default), the calendar follows the system date and updates at midnight. With the CalendarClass.HighlightToday property set (the default), today's date is outlined in the CalendarClass.TodayColor color.