EAPUtilDateSQL Method (DateTime) |
Format a date/time for use in a SQL statement.
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(
DateTime dt
)
Public Shared Function DateSQL (
dt As DateTime
) As String
Parameters
- dt
- Type: SystemDateTime
The date to format for a SQL statement
Return Value
Type:
StringA date formatted for use in a SQL statement and appropriately quoted.
Remarks
This currently returns a string formatted for SQL-Server.
See Also