Defines the custom date and time format (Format property set to formatSftDateCustom).
Get
| C# | string Format = object.CustomFormat; |
| VB.NET | Format = object.CustomFormat As String |
| C++ | _bstr_t Format = object->CustomFormat; _bstr_t Format = object->GetCustomFormat(); |
| C | HRESULT object->get_CustomFormat(BSTR* Format); |
Put
| C# | string object.CustomFormat = Format; |
| VB.NET | object.CustomFormat = Format As String |
| C++ | _bstr_t object->CustomFormat = Format; void object->PutCustomFormat(_bstr_t Format); |
| C | HRESULT object->put_CustomFormat(BSTR Format); |
object
Format
Defines the custom date and time format (Format property set to formatSftDateCustom).
The CustomFormat property defines the format used when the Format property is formatSftDateCustom. The default is an empty string, which uses the short date format. p The format consists of format specifiers such as d, dd, ddd, dddd (day), M, MM, MMM, MMMM (month), y, yy, yyyy (year), g (era), h, hh, H, HH (hour), m, mm (minute), s, ss (second), f (fractions of a second), t, tt (AM/PM designator), and literal text in single or double quotes or after a backslash. A format of a single character is a standard format, for example "d" for the short date or "t" for the short time. See Formats for all specifiers. p Example: "ddd, MMM d, yyyy 'at' HH:mm" shows Fri, Dec 25, 2026 at 14:30. Names and the AM/PM designator come from the culture (Culture).
See Also SftDate Object | Object Hierarchy | Formats