FormatDateTimeValue Method
In This Topic
Formats a
System.DateTime value using the specified date format string.
The syntax of the format string is similar to .NET format strings. Some examples are "m/d/yyyy" or "d-mmm-yy".
Syntax
'Declaration
Public Shared Function FormatDateTimeValue( _
ByVal As System.Date, _
ByVal As System.String _
) As System.String
public static System.string FormatDateTimeValue(
System.DateTime ,
System.string
)
Parameters
- value
- The value to format.
- format
- The format string. Cannot be a null reference (Nothing in Visual Basic) or empty.
See Also