A Sandcastle Documented Class Library

# IMetadataService FormatDateTime Method

Formats the specified date time value.

Namespace: Dundas.BI.Data.Metadata
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    string FormatDateTime(
    	DateTime value,
    	string format
    )

    Function FormatDateTime (
    	value As DateTime,
    	format As String
    ) As String

    String^ FormatDateTime(
    	DateTime value,
    	String^ format
    )

    abstract FormatDateTime :
            value : DateTime *
            format : string -> string

#### Parameters

value
  Type: System
  DateTime
  The value.
format
  Type: System
  String
  The format.

#### Return Value

Type: String
The formatted value.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | value is .
ArgumentException | format is either or Empty.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IMetadataService Interface
Dundas.BI.Data.Metadata Namespace