The SftDate object represents a date field control: a date, a time or both, edited in parts or as free text, with a dropdown calendar, time list or clock. Through its Calendar property, the settings of the dropdown calendar can be accessed.
| Property/Method | Description |
|---|---|
| AboutBox | Displays product, contact and copyright information. |
| AccessibleName | Defines the name screen readers announce for the control (an empty string for the label in front of it). |
| AllowEmpty | Defines whether the field can be empty. |
| Announce | Has screen readers announce a text. |
| AutoAdvance | Defines whether a completely typed part moves on to the next part. |
| AutoSize | Defines whether the control sizes itself to its contents. |
| BackColor | Defines the field's background color. |
| BorderColor | Defines the color of the field's thin border. |
| BorderStyle | Defines the field's border. |
| Buttons | Defines the buttons shown in the field. |
| Calendar | Returns the SftDateCalendar object with the calendar settings. |
| CalendarType | Defines the calendar system used by the culture. |
| CancelMode | Cancels current processing modes. |
| Checked | Defines whether the check box is checked. |
| CloseDropDown | Closes the dropdown. |
| Culture | Defines the locale whose names and formats are used (an empty string for the user's locale). |
| CustomCode | Defines optional product customization. |
| CustomFormat | Defines the custom date and time format (Format property set to formatSftDateCustom). |
| DarkMode | Defines the dark mode setting (off, on, or following the Windows setting). |
| DarkModeActive | Returns whether dark mode is currently active. |
| DefaultText | Defines a text such as =Today that sets the value relative to the current date when it is set and when the control is loaded. |
| Direct | Returns an ISftDateVTable interface pointer. |
| DPI | Returns the effective DPI for the control's current monitor. |
| DropDownAlignment | Defines how the dropdown is aligned with the field. |
| DropDownContent | Defines what the dropdown shows. |
| DropOnFocus | Defines whether the dropdown opens when the field gets the input focus. |
| DroppedDown | Returns whether the dropdown is open. |
| EditStyle | Defines whether the parts are edited one at a time or the text is typed freely. |
| Enabled | Defines whether the control responds to user-generated events. |
| Font | Defines the font used by the control. |
| ForeColor | Defines the field's text color. |
| Format | Defines the format of the date and time shown. |
| GetOptionalCalendars | Returns the calendar systems a locale offers, as an array of SftDateCalendarTypeConstants values. |
| HasExpired | For internal use only. |
| HighContrastActive | Returns whether high contrast is currently active. |
| HighContrastMode | Defines the high contrast setting (off, on, or following the Windows setting). |
| HitTest | Determines the part of the field at a location. |
| hWnd | Returns the control's window handle. |
| ImageScaling | Defines whether the pictures of special dates and formatted days are scaled to the current DPI. |
| License | Returns the product's license number. |
| MaxDate | Defines the latest date that can be selected. |
| MinDate | Defines the earliest date that can be selected. |
| MouseIcon | Defines a custom mouse icon. |
| MousePointer | Defines the mouse pointer used. |
| OLEDrag | Initiates an OLE drag & drop operation. |
| OLEDragMode | Defines OLE drag support. |
| OLEDropMode | Defines OLE drop support. |
| OpenDropDown | Opens the dropdown. |
| PlaceholderForeColor | Defines the color of the placeholder text. |
| PlaceholderText | Defines the text shown while the field is empty. |
| PreferredHeight | Returns the height in pixels the control needs for its contents. |
| PreferredWidth | Returns the width in pixels the control needs for its contents. |
| RangeEnd | Defines the last date of the selected range; Null when there is none. |
| RangeSeparator | Defines the text shown between the first and last date of a range. |
| RangeStart | Defines the first date of the selected range; Null when there is none. |
| Refresh | Repaints the entire control. |
| RightToLeft | Defines whether the control is laid out right to left. |
| SegmentHighlightBackColor | Defines the background color of the part being edited. |
| SegmentHighlightForeColor | Defines the text color of the part being edited. |
| SelectionMode | Defines whether one date or a range of dates is selected. |
| SetRange | Selects a range of dates (range selection only). |
| SetRuntimeLicense | For internal use only. |
| ShowCheckBox | Defines whether a check box is shown. |
| ShowClearButton | Defines whether a button that clears the field is shown. |
| Text | Defines the field's text. |
| TimeDropDownStyle | Defines whether the dropdown shows times as a list or a clock face. |
| TimeInterval | Defines the minutes between the times of the time list. |
| UseThemes | Defines whether Windows themes are used. |
| Value | Defines the selected date, or the first date of a range; Null when there is none. |
| Version | Returns the product's exact version. |
| WebLicense | Defines the license information for use on one web site. |
| Window | Returns the control's window handle. |
| _FlatProperties | Defines whether properties are stored as a flat list in a property bag. |
| _getparm | Retrieves event parameters. |
| _OLEOLE | For internal use only. |
| _PropFile | Defines the external file to save/load properties. |
| _setparm | Sets event parameters. |
| _Version | Returns the product's exact version. |
See Also Object Hierarchy | SftDate Events