Udostępnij za pośrednictwem


SqlSmoObject.SqlDateString(DateTime) Method

Definition

Converts a DateTime to a string in a format that is unambiguous and can be converted into a sql datetime in T-SQL code regardless of the server's language setting.

public static string SqlDateString (DateTime date);
static member SqlDateString : DateTime -> string
Public Shared Function SqlDateString (date As DateTime) As String

Parameters

date
DateTime

Returns

string

Applies to