Defines the format of the date and time shown.
Get
| C# | SftDateFormatConstants Format = object.Format; |
| VB.NET | Format = object.Format As SftDateFormatConstants |
| C++ | enum SftDateFormatConstants Format = object->Format; enum SftDateFormatConstants Format = object->GetFormat(); |
| C | HRESULT object->get_Format(enum SftDateFormatConstants* Format); |
Put
| C# | SftDateFormatConstants object.Format = Format; |
| VB.NET | object.Format = Format As SftDateFormatConstants |
| C++ | enum SftDateFormatConstants object->Format = Format; void object->PutFormat(enum SftDateFormatConstants Format); |
| C | HRESULT object->put_Format(enum SftDateFormatConstants Format); |
object
Format
Defines the format of the date and time shown.
| Name | Value | Description |
|---|---|---|
| formatSftDateShortDate | 0 | Short date |
| formatSftDateLongDate | 1 | Long date |
| formatSftDateShortTime | 2 | Short time |
| formatSftDateLongTime | 3 | Long time |
| formatSftDateShortDateTime | 4 | Short date and time |
| formatSftDateLongDateTime | 5 | Long date and time |
| formatSftDateCustom | 6 | Custom format (CustomFormat property) |
The Format property defines the format of the date field control. The default is formatSftDateShortDate. The formats other than formatSftDateCustom come from the culture (Culture); formatSftDateCustom uses the CustomFormat property. p The format defines the parts the user edits (day, month, year, hour, minute, second, AM/PM designator, era) and which dropdown opens: a calendar for a date, a time list or clock for a time, both for a date and time (DropDownContent). A field that shows only a date keeps the time of its value, a field that shows only a time keeps the date. p A new format closes the dropdown and ends the editing of a part.
See Also SftDate Object | Object Hierarchy | Formats