ActiveReports 12
FormatDateTime Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace > Strings Class : FormatDateTime Method
Required. Date expression to be formatted.
Optional. Numeric value that indicates the date/time format used. If omitted, DateFormat.GeneralDate is used.
Returns a string expression representing a date/time value.
Syntax
'Declaration
 
Public Shared Function FormatDateTime( _
   ByVal expression As Date, _
   Optional ByVal namedFormat As DateFormat _
) As String
public static string FormatDateTime( 
   DateTime expression,
   DateFormat namedFormat
)

Parameters

expression
Required. Date expression to be formatted.
namedFormat
Optional. Numeric value that indicates the date/time format used. If omitted, DateFormat.GeneralDate is used.

Return Value

Returns a string expression representing a date/time value.
See Also

Reference

Strings Class
Strings Members