EAPUtilDateSQL Method (NullableDateTime) |
Format a nullable date/time for use in a SQL statement.
If non-null the string will be
AnsiQuoted and so no additional quoting should be performed.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string DateSQL(
Nullable<DateTime> dt
)
Public Shared Function DateSQL (
dt As Nullable(Of DateTime)
) As String
Parameters
- dt
- Type: SystemNullableDateTime
The date to format for a SQL statement
Return Value
Type:
StringA date formatted and quoted for use in a SQL statement if non-null, else "NULL" (unquoted).
See Also