DateTimeFormatter Class TIBCO Spotfire 7.6 API Reference
Formatter for Date, Time, or DateTime values.
Inheritance Hierarchy

SystemObject
  Spotfire.Dxp.Data.FormattersDataFormatterBase
    Spotfire.Dxp.Data.FormattersDateTimeFormatter

Namespace: Spotfire.Dxp.Data.Formatters
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax

C#
[SerializableAttribute]
[PersistenceVersionAttribute(2, 0)]
public sealed class DateTimeFormatter : DataFormatterBase

The DateTimeFormatter type exposes the following members.

Methods

  NameDescription
Protected methodCheckReadOnly
Throws InvalidOperationException if the formatter is read-only. Do this check before setting a property.
(Inherited from DataFormatterBase.)
Public methodClone
Returns a writable copy of this formatter.
(Inherited from DataFormatterBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from DataFormatterBase.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFormat
Override this method to convert an object to a string value.
(Inherited from DataFormatterBase.)
Public methodFormatInvalid
Formats an invalid value. If error is not null, the return value includes the "(error)" string, otherwise EmptyString is returned.
(Inherited from DataFormatterBase.)
Public methodGetHashCode
Gets a hash code for the current Object.
(Inherited from DataFormatterBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodParse
Override this method to convert a string value to an object.
(Inherited from DataFormatterBase.)
Public methodTryParse
Converts a string representation to an object. A return value indicates whether the conversion succeeded or failed.
(Inherited from DataFormatterBase.)
Top
Properties

  NameDescription
Public propertyCultureInfo
Gets or sets a CultureInfo object that defines the default formatting.
(Inherited from DataFormatterBase.)
Public propertyDateTimeStyles
Gets or sets a DateTimeStyles object that defines how string representations are parsed.
Public propertyEmptyString
Gets or sets the string used to indicate empty values. (FormatInvalid(String)).
(Inherited from DataFormatterBase.)
Public propertyExactParse
Gets or sets a value indicating whether the format of the string representation must match the specified format exactly or not. Default is false.
(Inherited from DataFormatterBase.)
Public propertyFormatString
Gets or sets a format string that defines how values are formatted.
Public propertyIsLocalized
Gets a value indicating whether this formatter is localized and always uses CultureInfo derived from the current running thread or not.
(Inherited from DataFormatterBase.)
Public propertyIsReadOnly
Gets a value indicating whether the formatter is read-only or not.
(Inherited from DataFormatterBase.)
Top
Version Information

Supported in: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference