# SftDate/DLL 2.0 — Guide > SftDate/DLL is a DLL-based set of two controls for the Windows™ operating system: a date field for a date, a time, a date and time or a range of dates, with a dropdown calendar and time selection, and a month calendar showing one or more months. Both controls follow the culture and calendar system of your choice, for applications written using C, C++ and MFC. Index of the SftDate/DLL 2.0 guide, which is split into 4 files in reading order. Each entry links one file and lists its topics; read only the files you need. Online documentation: https://softelvdm.com/Documentation/SftDate%20DLL%202%200 API reference (index of the reference files): https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-reference.txt ## Introduction https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-guide-1.txt - SftDate/DLL - Date and Calendar Controls: SftDate/DLL is a DLL-based set of two controls for the Windows™ operating system: a date field for a date, a time, a date and time or a range of dates, with a dropdown calendar and time selection, and a month calendar showing one or more … - Installing SftDate/DLL: When you are ready to install SftDate/DLL: ## Features (1 of 2) https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-guide-2.txt - Field Components: An SftDate control is a field showing one value: a date, a time, a date and time, or a range of dates. - Calendar Components: An SftCalendar control shows one or more months. - Values and Empty Fields: SftDate_GetValue and SftDate_SetValue read and set the value of a field, and the selected date of a calendar, as a SYSTEMTIME structure. - Formats: SftDate_SetFormat defines how a field shows its value. - Cultures and Calendar Systems: SftDate_SetCulture defines the culture of a control: its date and time patterns, the names of months and days, the AM/PM designators, the first day of the week, the week number rule, the century used for two-digit years and the calendar … - Right-To-Left Reading Support: The SftDate and SftCalendar controls support a right-to-left layout, for languages such as Arabic, Hebrew and Persian. - Editing: SftDate_SetEditStyle defines how the user enters the value of a field: one part at a time (SFTDATE_EDIT_SEGMENTS, the default) or by typing the whole value as text (SFTDATE_EDIT_FREEFORM). - Validation: Values the user enters in a field are checked in three steps: - The Dropdown: The dropdown button of an SftDate control, the F4 key and Alt+Down open the dropdown. - Time List and Clock: The dropdown of a field showing a time offers the time in one of two styles, defined by SftDate_SetTimeDropDownStyle. - Date Ranges: With SftDate_SetSelectionMode set to SFTDATE_SELECTION_RANGE, a field or a calendar holds a range of dates instead of one date. - Calendar Layout and Views: SftDate_SetMonthsAcross and SftDate_SetMonthsDown define how many months a calendar shows side by side and one below the other, from 1 to 12 each. - Week Numbers: With SftDate_SetShowWeekNumbers set to TRUE, a calendar shows the number of each week in front of it, in the SFTDATE_COLOR_WEEKNUMBERFORE and SFTDATE_COLOR_WEEKNUMBERBACK colors. - Today and Clear Buttons: Below its months, a calendar can show two buttons: ## Features (2 of 2) https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-guide-3.txt - Special Dates: Special dates are days a calendar shows differently, such as holidays and appointments. - Day Formatting: The NM_SFTDATE_DAYFORMATTING notification is sent before a calendar shows a day, so the application can change how the day is shown and whether it can be selected. - Colors: All colors of the controls can be defined by the application with SftDate_SetColor; SftDate_GetColor returns them. - Hit Testing: SftDate_HitTest returns what is at a location of a control, in client coordinates, in a SFTDATE_HITTEST structure. - Keyboard Interface: The keys below work in a dialog, where the dialog manager moves the input focus with Tab and Shift+Tab and uses Enter and Escape for its default and Cancel buttons, and in any other window. - GDI+: The SftDate and SftCalendar controls use GDI+ for features not otherwise available: - Using Themes: The SftDate and SftCalendar controls use Windows themes (visual styles) by default, so they match the standard Windows controls of the application. - Dark Mode: SftDate/DLL 2.0 supports dark mode. - High Contrast: Windows High Contrast (contrast themes) is an accessibility setting, not a visual preference. - Accessibility (Screen Readers): SftDate/DLL 2.0 ships with built-in Windows UI Automation (UIA) support. - Per-Monitor DPI and Scaling: SftDate/DLL 2.0 is Per-Monitor v2 DPI-aware. - Comparison with the Date and Time Picker and Month Calendar Controls: SftDate/DLL covers all functions of the Windows Date and Time Picker (SysDateTimePick32) and Month Calendar (SysMonthCal32) controls. ## Programming, Demo Application https://softelvdm.com/Vault/Softelvdm.com/llms/SftDate-DLL-2.0-guide-4.txt - Building Applications: This section describes how to prepare an application using the C or C++ programming language to successfully use SftDate/DLL. - Creating a Dialog Resource: This section describes how to add a date field control or a month calendar control to a dialog using Visual Studio. - Using C: This section describes how to use SftDate/DLL in an application written using the C programming language. - Using C++/MFC: This section describes how to use SftDate/DLL in an application written using C++ and the Microsoft Foundation Class library (MFC). - MFC and Notifications: Notifications can be handled by a control's parent window or directly by the control itself (in a derived class). - Demo Application: During the installation of SftDate/DLL, an icon for the demo application "Demo" (SftDateDLLDemo.exe) is installed in the program group SftDate DLL 2.0. - Samples: SftDate/DLL includes sample code for C and C++/MFC. - DemoSample (C): This sample shows ten date fields of every kind (short date, long date, time from a list and from a clock, date and time, range, optional date with a check box, empty date with a placeholder and a Clear button, free-form date and a custom … - EventViewer (C): This sample logs the notifications of two date fields and a month calendar in a list view, with the data each one carries; a repeated notification is counted instead of logged again. - DemoSample (C++/MFC): This sample is the DemoSample hosted in an MFC dialog: ten date fields of every kind and a month calendar, attached to CSftDate and CSftCalendar objects through DDX_Control, with options for the culture and calendar system, dark mode, high … - EventViewer (C++/MFC): This sample is the EventViewer hosted in an MFC dialog: two date fields and a month calendar attached to CSftDate and CSftCalendar objects, with every notification handled in an OnNotify override and logged in a list view. - Distributing the Dlls: Distributing the DLLs included with SftDate DLL 2.0 is only possible in accordance with the licensing agreement. - Technical Support: New major versions and product maintenance are available with an active support subscription.