The EditStyle property defines how the user enters the value of a field: one part at a time (editSftDateSegments, the default) or by typing the whole value as text (editSftDateFreeForm).

With editSftDateSegments, each part of the value (day, month, year, hours, minutes, seconds, fractions of a second, AM/PM) is edited separately. The part being edited is highlighted in the SegmentHighlightBackColor and SegmentHighlightForeColor colors while the field has the input focus.
When a change creates a date that does not exist, such as February 30, the day is reduced to the last day of the month.
While some parts of a value are empty, the value is incomplete. It is completed with the missing parts from the earlier value, or from the current date and time when the field was empty, when the user presses Enter, tabs past the last part, opens the dropdown or leaves the field.
Each change the user makes is checked before it is accepted (see Validation).
With editSftDateFreeForm, the user types the value as text, in a text box the field shows in place of its parts. The text is parsed when the user presses Enter, leaves the field or opens the dropdown. A text that cannot be parsed is refused with a beep and the previous value is shown again; an empty text empties the field when empty values are allowed or a check box is shown. Escape restores the text of the current value. The Up and Down keys and the up and down buttons change the value by one day, or by one minute in a field showing only a time.
Keys typed in the text box raise the KeyDown event, but not the KeyPress and KeyUp events.
A text is parsed in the following order:
Parts the format does not show are kept from the current value; a time typed in a date and time field keeps the date. In range mode, the first and the last date are separated by the text defined by the RangeSeparator property, or by an en dash, and each of them is parsed on its own.
A text set with the Text property and a text pasted into a field with segment editing are parsed the same way.
The TextParsing event occurs before a text typed in a free-form field, pasted into a field or set with the Text property is parsed. In Windows Forms, e.text holds the text and e.current the current value (Null when there is none), for texts relative to it. The application sets e.handled to true to indicate that it parsed the text, and e.value to the date the text represents; e.handled set to true with e.value left Null refuses the text. This example accepts "+7" or "-3" as a number of days from today:
private void sftDate1_TextParsing(object sender, AxSftDateLib20._ISftDateEvents_TextParsingEvent e) {
int days;
if ((e.text.StartsWith("+") || e.text.StartsWith("-")) && int.TryParse(e.text, out days)) {
e.value = DateTime.Today.AddDays(days);
e.handled = true;
}
}The value is then checked like any value the user enters (see Validation), except for a text set with the Text property.