Open this page in the API Guide

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 (25.1.0.1000)
Syntax
string FormatDateTime(
	DateTime value,
	string format
)

Parameters

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

Return Value

Type: String
The formatted value.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null.
ArgumentExceptionformat is either null or Empty.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also