Infrastructure. Formats the date/time for display, according to control settings.
Syntax
'Declaration
<NotNullAttribute()>
<PureAttribute()>
Protected Function Format( _
ByVal As Date, _
ByVal As Boolean _
) As String
'Usage
Dim instance As UADataSetHeaderControl
Dim dateTime As Date
Dim forTooltip As Boolean
Dim value As String
value = instance.Format(dateTime, forTooltip)
Parameters
- dateTime
- The date/time to be formatted.
- forTooltip
- Determines whether the formatted string is intended for display in a tooltip.
Return Value
Returns the formatted for display in the control.
This method never returns null
(Nothing
in Visual Basic).
Requirements
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
See Also