SftDate/DLL covers all functions of the Windows Date and Time Picker (SysDateTimePick32) and Month Calendar (SysMonthCal32) controls. It is not a drop-in replacement: its functions, notifications and constants have their own names and parameters, and a calendar setting is set with the same function for an SftCalendar control and for the dropdown calendar of an SftDate control, instead of DTM_SETMC* messages. This table shows where each function of the Windows controls is found.
| SysDateTimePick32 | SftDate/DLL |
|---|---|
| DTM_GETSYSTEMTIME, DTM_SETSYSTEMTIME | SftDate_GetValue, SftDate_SetValue (a NULL value empties the field) |
| DTS_SHOWNONE, GDT_NONE | SftDate_SetShowCheckBox, SftDate_SetChecked, and SftDate_SetAllowEmpty for empty fields without a check box, with SftDate_SetPlaceholderText and SftDate_SetShowClearButton |
| DTM_GETRANGE, DTM_SETRANGE | SftDate_GetMinDate, SftDate_SetMinDate, SftDate_GetMaxDate, SftDate_SetMaxDate, within the years 1 to 9999 and the culture's calendar |
| DTS_SHORTDATEFORMAT, DTS_SHORTDATECENTURYFORMAT, DTS_LONGDATEFORMAT, DTS_TIMEFORMAT, DTM_SETFORMAT | SftDate_SetFormat, SftDate_SetCustomFormat (see Formats) |
| DTS_UPDOWN | SftDate_SetButtons |
| DTS_RIGHTALIGN | SftDate_SetDropDownAlignment |
| DTS_APPCANPARSE, DTN_USERSTRING | SftDate_SetEditStyle with SFTDATE_EDIT_FREEFORM, NM_SFTDATE_TEXTPARSING |
| DTN_DATETIMECHANGE | NM_SFTDATE_VALUECHANGED, preceded by NM_SFTDATE_VALUEVALIDATING for changes the user makes |
| DTN_DROPDOWN, DTN_CLOSEUP | NM_SFTDATE_DROPDOWNOPENING, NM_SFTDATE_DROPDOWNOPENED, NM_SFTDATE_DROPDOWNCLOSED |
| DTM_GETMONTHCAL, DTM_SETMCSTYLE, DTM_SETMCCOLOR, DTM_SETMCFONT | The calendar functions called for the field (SftDate_SetShowWeekNumbers, SftDate_SetColor, SftDate_SetCalendarFont, ...) |
| DTM_CLOSEMONTHCAL | SftDate_CloseDropDown; SftDate_OpenDropDown and SftDate_IsDroppedDown |
| DTM_GETIDEALSIZE | SftDate_GetPreferredSize, SftDate_GetPreferredHeight, SftDate_SetAutoSize |
| DTN_FORMAT, DTN_FORMATQUERY, DTN_WMKEYDOWN (callback fields) | NM_SFTDATE_KEYDOWN handles keys; there are no callback fields |
| WM_GETTEXT, WM_SETTEXT | WM_GETTEXT, WM_SETTEXT (setting the text parses it) |
SftDate/DLL adds, among others: any culture and calendar system independent of the system settings, empty fields with a placeholder text and a Clear button, date ranges in a field, a time list or clock face in the dropdown, free-form typing with application-defined parsing, a validation notification, special dates with colors, pictures and tooltips, a day formatting notification, disabled days, a Clear button in the calendar, a dropdown that leaves the input focus in the field, dark mode, high contrast and per-monitor DPI.