ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.VBFunctionLib 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.

In This Topic
    FormatDateTime Method
    In This Topic
    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