ExtensionConvertDateFromString Method |  |
Convert a string to date or null
Namespace:
Velo.Data.Helper
Assembly:
Velo.Data (in Velo.Data.dll) Version: 22.2.10.1 (22.2.10.450)
Syntaxpublic static Nullable<DateTime> ConvertDateFromString(
this string pDate
)
<ExtensionAttribute>
Public Shared Function ConvertDateFromString (
pDate As String
) As Nullable(Of DateTime)
Parameters
- pDate
- Type: SystemString
Text as date example 2010-04-03 or empty text
Return Value
Type:
NullableDateTimeA date or null
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
See Also