HeaderPane
Main
Hide
Share Link
Print

Format Property, SftDate Object

Defines the format of the date and time shown.

Syntax

Get

C#SftDateFormatConstants Format = object.Format;
VB.NETFormat = object.Format As SftDateFormatConstants
C++enum SftDateFormatConstants Format = object->Format;
enum SftDateFormatConstants Format = object->GetFormat();
CHRESULT object->get_Format(enum SftDateFormatConstants* Format);

Put

C#SftDateFormatConstants object.Format = Format;
VB.NETobject.Format = Format As SftDateFormatConstants
C++enum SftDateFormatConstants object->Format = Format;
void object->PutFormat(enum SftDateFormatConstants Format);
CHRESULT object->put_Format(enum SftDateFormatConstants Format);

object

A SftDate object.

Format

Defines the format of the date and time shown.

NameValueDescription
formatSftDateShortDate0Short date
formatSftDateLongDate1Long date
formatSftDateShortTime2Short time
formatSftDateLongTime3Long time
formatSftDateShortDateTime4Short date and time
formatSftDateLongDateTime5Long date and time
formatSftDateCustom6Custom format (CustomFormat property)

Comments

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


Last Updated 11/29/2026 - (email)
© 2026 Softel vdm, Inc.