Defines the latest date that can be selected.
Get
| C# | DateTime Date = object.MaxDate; |
| VB.NET | Date = object.MaxDate As Date |
| C++ | DATE Date = object->MaxDate; DATE Date = object->GetMaxDate(); |
| C | HRESULT object->get_MaxDate(DATE* Date); |
Put
| C# | DateTime object.MaxDate = Date; |
| VB.NET | object.MaxDate = Date As Date |
| C++ | DATE object->MaxDate = Date; void object->PutMaxDate(DATE Date); |
| C | HRESULT object->put_MaxDate(DATE Date); |
object
Date
Defines the latest date that can be selected.
The MaxDate property defines the latest date the control accepts. The default is December 31, 9999. p The user cannot enter, select or scroll to a later date; later days are shown disabled in the calendar. A date field control applies the date and time, a month calendar control only the date. The dropdown calendar of a date field control uses the same limits. p If the value or the selected range lies outside the new limits, it is moved inside and the control raises the ValueChanged (or RangeChanged) event. The earliest date is defined using the MinDate property.
}, c => {
c.DarkMode = SftDateDarkModeConstants.darkSftDateAuto;
c.HighContrastMode = SftDateHighContrastConstants.highContrastSftDateAuto;
c.ImageScaling = SftDateScalingConstants.scalingSftDateStretch;
c.Value = now;
});
fieldRange.SetRange(now, now.AddDays(6));
minDate = sftCalendar.MinDate;
maxDate = sftCalendar.MaxDate;
labelHelp.Text = "Type into the parts of a field, change a part with the Up and Down keys or the mouse wheel, and open the " +
"dropdown with F4 or Alt+Down. In the dropdown of the date and time field, Tab switches between the calendar " +
"and the time. The free-form field parses what you type in the selected culture.\r\n\r\n" +
"The options apply to all fields and calendars; the month counts apply to the SftCalendar control.";
// the options start out with the controls' settings
Sub(c)
c.DarkMode = SftDateDarkModeConstants.darkSftDateAuto
c.HighContrastMode = SftDateHighContrastConstants.highContrastSftDateAuto
c.ImageScaling = SftDateScalingConstants.scalingSftDateStretch
c.Value = current
End Sub)
fieldRange.SetRange(current, current.AddDays(6))
minDate = sftCalendar.MinDate
maxDate = sftCalendar.MaxDate
labelHelp.Text = "Type into the parts of a field, change a part with the Up and Down keys or the mouse wheel, and open the " &
"dropdown with F4 or Alt+Down. In the dropdown of the date and time field, Tab switches between the calendar " &
"and the time. The free-form field parses what you type in the selected culture." & vbCrLf & vbCrLf &
"The options apply to all fields and calendars; the month counts apply to the SftCalendar control."
' the options start out with the controls' settingsSee Also SftCalendar Object | Object Hierarchy | Values