HeaderPane
Main
Hide
Share Link
Print

MinDate Property, SftCalendar Object

Defines the earliest date that can be selected.

Syntax

Get

C#DateTime Date = object.MinDate;
VB.NETDate = object.MinDate As Date
C++DATE Date = object->MinDate;
DATE Date = object->GetMinDate();
CHRESULT object->get_MinDate(DATE* Date);

Put

C#DateTime object.MinDate = Date;
VB.NETobject.MinDate = Date As Date
C++DATE object->MinDate = Date;
void object->PutMinDate(DATE Date);
CHRESULT object->put_MinDate(DATE Date);

object

A SftCalendar object.

Date

Defines the earliest date that can be selected.

Comments

The MinDate property defines the earliest date the control accepts. The default is January 1, 0100, the earliest date the control supports. p The user cannot enter, select or scroll to an earlier date; earlier 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 latest date is defined using the MaxDate property.

Examples

C# View entire sample code

                    f.Value = now;
            }, 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.";

VB.NET View entire sample code

                       End Sub,
                       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."

See Also SftCalendar Object | Object Hierarchy | Values


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.