'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.