SqlSmoObject.SqlDateString(DateTime) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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