Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataType.Date Property


The Date property returns a Date data type.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public static DataType Date { get; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.DataType

A DataType object value that specifies a Date definition in the data type.

Returns date information that represents any valid Gregorian calendar date between 0001-01-01 and 9999-12-31.

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.Date)


$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::Date)
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft